C++C++ · Lesson 6 of 9
STL Containers
The Standard Template Library is C++'s collection of containers and algorithms. It's massive, powerful, and the reason you don't have to implement your own linked list.
◆ Note
Use vector for most things. Use map when you need sorted iteration or don't care about lookup speed. Use unordered_map when you need fast (O(1)) lookup and don't care about order. Use set for unique sorted collections.
Use vector for most things. Use map when you need sorted iteration or don't care about lookup speed. Use unordered_map when you need fast (O(1)) lookup and don't care about order. Use set for unique sorted collections.