Loading...

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.