Tag: STL
All the articles with the tag "STL".
-
C++ std::pair Explained: Store Two Values Together for Beginners
Learn how std::pair works in C++ — create pairs, access first and second, use make_pair, and see practical examples with maps and functions.
-
C++ Queue and Stack Tutorial: FIFO and LIFO Containers Explained
Learn how to use std::queue and std::stack in C++. Understand FIFO vs LIFO, push, pop, front, top, and when to choose each container.
-
C++ std::set Tutorial: Sorted Unique Collections for Beginners
Learn how to use std::set in C++ to store sorted, unique elements. Covers insert, find, erase, iteration, and when to choose set over vector.
-
C++ Array vs Vector: When to Use Each (with Examples)
C++ array vs vector: when to use std::vector versus a raw array, the key differences in sizing, safety, and performance, plus a clear beginner recommendation.