1 00:00:01,060 --> 00:00:06,550 Cplusplus programming has another powerful feature regarding the use of the template classes, which 2 00:00:06,550 --> 00:00:09,530 is a standard template library. 3 00:00:09,580 --> 00:00:10,750 S. 4 00:00:11,140 --> 00:00:12,040 T. 5 00:00:12,670 --> 00:00:13,360 L. 6 00:00:15,600 --> 00:00:24,240 So it's a set of class templates to provide all functions that are commonly used in manipulating various 7 00:00:24,240 --> 00:00:25,410 data structures. 8 00:00:25,410 --> 00:00:33,600 So there are four components that build the STL, the that they are first, they are algorithms, then 9 00:00:33,600 --> 00:00:35,850 there are containers. 10 00:00:37,420 --> 00:00:38,830 Iterators. 11 00:00:39,900 --> 00:00:41,640 And functions. 12 00:00:43,340 --> 00:00:45,230 Here are the algorithms. 13 00:00:46,150 --> 00:00:52,120 Containers, iterators and functions. 14 00:00:53,390 --> 00:00:55,880 So now let's look at these components. 15 00:00:55,880 --> 00:00:56,480 Mergers. 16 00:00:56,480 --> 00:00:59,510 So algorithms here, let me take this. 17 00:00:59,510 --> 00:01:08,480 So algorithms here are used on a range of elements such as sorting and searching. 18 00:01:08,480 --> 00:01:15,350 So the sorting algorithm is used to arrange the elements so both in ascending and descending order. 19 00:01:15,350 --> 00:01:21,650 So the searching algorithm is used to look for specific value from ranges of elements. 20 00:01:22,100 --> 00:01:25,250 Also we have the containers here. 21 00:01:26,670 --> 00:01:31,560 The containers are used to store objects of data. 22 00:01:31,560 --> 00:01:34,640 So the common container that is widely used is vector. 23 00:01:34,650 --> 00:01:42,600 So the vector is similar to an array, except it has the ability to resize itself automatically when 24 00:01:42,600 --> 00:01:46,290 an element is inserted or deleted. 25 00:01:46,440 --> 00:01:50,970 So we also have the iterators here. 26 00:01:52,340 --> 00:01:57,260 Iterators are used to work upon a sequence of values. 27 00:01:57,260 --> 00:01:59,600 So each container has its own iterator. 28 00:01:59,600 --> 00:02:02,240 For instance, there are begin. 29 00:02:04,860 --> 00:02:06,060 Uh, or here. 30 00:02:06,060 --> 00:02:07,980 This is the function begin function. 31 00:02:08,280 --> 00:02:09,390 And here. 32 00:02:11,120 --> 00:02:18,030 We also have the rent, which you will learn all about them. 33 00:02:18,050 --> 00:02:20,450 This is also our rent here. 34 00:02:20,450 --> 00:02:29,930 So they are the iterator functions and you will learn about them in this section. 35 00:02:30,050 --> 00:02:33,110 We also have the functions. 36 00:02:33,440 --> 00:02:39,230 Lastly here, let's actually delete this and drive on the function here. 37 00:02:39,590 --> 00:02:42,260 So the functions. 38 00:02:44,440 --> 00:02:45,340 Functions. 39 00:02:45,550 --> 00:02:51,490 So functions here are used to overload the existing function. 40 00:02:51,490 --> 00:02:56,800 So the instance of this component is called the Functor func. 41 00:02:59,070 --> 00:03:02,250 Functor or function object. 42 00:03:02,250 --> 00:03:09,120 So the functor is defined as a pointer of function where we can parameterize the existing function. 43 00:03:09,120 --> 00:03:16,110 So we are not building any code in this lecture since we just need to know that the STL is a powerful 44 00:03:16,110 --> 00:03:19,440 library in C plus plus and that it exists fortunately. 45 00:03:19,440 --> 00:03:26,640 So we are going to discuss the STL deeper in the next lectures.