#stl
- 2 Jan 2024 · Study
C++ · STL: algorithms
The <algorithm> and <numeric> toolkit: sort with comparators, find_if, count_if, accumulate, transform, and min/max.
- 27 Dec 2023 · Study
C++ · STL: set
std::set and std::unordered_set for unique elements, insert's return value, and set operations with algorithms.
- 22 Dec 2023 · Study
C++ · STL: map and unordered_map
Ordered std::map (a balanced tree) versus std::unordered_map (a hash table), lookups with find/count, and the operator[] side effect.
- 19 Dec 2023 · Study
C++ · STL: vector
std::vector as C++'s list: push_back, size vs capacity, iterators, erase, and reserving memory.