Standard Library and STL
Comprehensive articles on the C++ Standard Library, STL containers, algorithms, and iterators.
Standard Library and STL
Powerful data processing with STL containers, algorithms, and iterators.
Learn structures like vector, map, unordered_map and the <algorithm> toolbox with hands-on examples.
Goal: Choose the right container and algorithm to write performant and clean C++ code.
TL;DR
- Containers:
std::vector,std::list,std::deque. - Associative:
std::map,std::unordered_map,std::set. - Algorithms:
std::sort,std::find,std::accumulate. - Iterators & range-based
for,std::string_view.
Overview of the C++ Standard Library
Learn the C++ Standard Library, including STL containers, algorithms, iterators, and essential components for modern C++ development.
Using std::vector in C++
Learn how to use std::vector in C++ for dynamic arrays, efficient element management, and practical programming examples.
Sequential Data Structures with std::list and std::deque in C++
Learn how to use std::list and std::deque in C++, including performance differences, use cases, and sequential data management.
Key-Value Structures with std::map and std::unordered_map in C++
Learn how to use std::map and std::unordered_map in C++ for efficient key-value storage, fast lookups, and practical applications.
Unique Elements with std::set and std::multiset in C++
Learn std::set and std::multiset in C++ to manage unique elements, ordered collections, and efficient search operations.
Using std::stack, std::queue, and std::priority_queue in C++
Learn how to use std::stack, std::queue, and std::priority_queue in C++ for efficient data processing and algorithm design.
pair, tuple, and Structured Binding in C++
Learn pair, tuple, and structured binding in C++ to manage multiple values and write cleaner, more modern code.
The C++ algorithm Library: sort, find, count
Learn the C++ algorithm library, including sort, find, count, and other STL algorithms for efficient data processing.
Lightweight String Handling with std::string_view in C++
Learn std::string_view in C++ to perform fast, lightweight string operations without unnecessary string copying.
Iterators and Their Use in the C++ STL
Learn iterators in C++ and how they work with STL containers and algorithms to traverse and manipulate data efficiently.