The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators.
- Sort
- Binary Search
- Lower Bound and Upper Bound
- Maximum and Minimum
- Rotate
- Swap
- Reverse
-
Sequence Containers - Data Structures which can be accessed in a sequential manner
- Vector
- List
- Deque
- Array
-
Container Adaptors - Provides a different interface for sequential containers
- Stack
- Queue
- Priority Queue
-
Associative Containers - Data Structures that can be quickly searched (O(log n) complexity)
- Set
- Map
-
Unordered Associative Containers - Unordered Data Structures that can be quickly searched
- Unordered Set
- Unordered Map
- Clone this repository
- Select the topic you want to learn, and open the .cpp file for that topic
- Run the code
For better understanding, keep the code and output side-by-side