C++ STL
In C++ STL means Standard Template Library. It is a powerful set of C++ template classes that provide general-purpose classes and function.
It is commonly used as algorithms and data structures like vectors, lists, queues, stacks and etc.
Containers
Containers help to manage collections of objects of a certain type.
Iterators
Iterators are used to access the individual elements in a container.
begin(): It returns an iterator to the first element of the vector.
end(): It returns an iterator to the last element of a container.
Header file | Description |
---|---|
<vector> | It is a class which creates a dynamic array allowing insertions and deletions at the back. |
<list> | It is the sequence containers that allow the insertions and deletions from anywhere. |
<deque> | It is the double-ended queue that allows the insertion and deletion from both the ends. |
<set> | It is an associate container for storing unique sets. |
<map> | It is an associate container for storing unique key-value pairs. |
<stack> | It follows last in first out(LIFO). |
<queue> | It follows first in first out(FIFO). |
Quickly Find What You Are Looking For
OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.