The STL(STANDARD TEMPLATE LIBRARY) contains several components. But at its core are three key components
1: containers;
2: algorithms,
3: iterators;
1: container - A container is an object that actually stored data. It is a way data is organized in memory . the STL container are implemented by template classes and therefore can be easily customized to hold different types of data;
2: Algorithm - An algorithm is a procedure that is used to process the data contained in the containers. the stl includes many different kinds of algoritms to provide support to tasks such as initializing , searching, copying , sorting, and merging , Algorithms are imagined by template functions.
3: Iterator: - An iterator is an object(like a pointer) that points to an element in the container. we can use iterators to move through the contents of containers. iterators are handled just like pointer

0 comments:
Post a Comment