Cplusplus programming has another powerful feature regarding the use of the template classes, which
is a standard template library.
S.
T.
L.
So it's a set of class templates to provide all functions that are commonly used in manipulating various
data structures.
So there are four components that build the STL, the that they are first, they are algorithms, then
there are containers.
Iterators.
And functions.
Here are the algorithms.
Containers, iterators and functions.
So now let's look at these components.
Mergers.
So algorithms here, let me take this.
So algorithms here are used on a range of elements such as sorting and searching.
So the sorting algorithm is used to arrange the elements so both in ascending and descending order.
So the searching algorithm is used to look for specific value from ranges of elements.
Also we have the containers here.
The containers are used to store objects of data.
So the common container that is widely used is vector.
So the vector is similar to an array, except it has the ability to resize itself automatically when
an element is inserted or deleted.
So we also have the iterators here.
Iterators are used to work upon a sequence of values.
So each container has its own iterator.
For instance, there are begin.
Uh, or here.
This is the function begin function.
And here.
We also have the rent, which you will learn all about them.
This is also our rent here.
So they are the iterator functions and you will learn about them in this section.
We also have the functions.
Lastly here, let's actually delete this and drive on the function here.
So the functions.
Functions.
So functions here are used to overload the existing function.
So the instance of this component is called the Functor func.
Functor or function object.
So the functor is defined as a pointer of function where we can parameterize the existing function.
So we are not building any code in this lecture since we just need to know that the STL is a powerful
library in C plus plus and that it exists fortunately.
So we are going to discuss the STL deeper in the next lectures.