C++ Standard Library "Little Things”
summary
Covers concrete small library additions and real tradeoffs: feature-test macros distinguish header presence from usable features; exchange avoids move-from state and has no extra debug cost; clamp and starts_with/ends_with simplify common code; associative containers expose node_handle lets you extract, mutate key, reinsert and support splice/merge without reallocating; unordered containers often use linked nodes under the hood; contains fixes count inefficiency; and parallel sort wins from ~1,000 elements on both laptop and 32-core hardware.
AI-written summary · about
chapters (26)
- 0:00Intro
- 0:45Overview
- 1:03Little Things
- 1:32Feature test macros
- 2:01Optional header
- 2:41Static assert
- 3:05Clamp
- 5:48StandLock
- 6:44Swap
- 7:57Howard Hidden
- 10:42Algorithms
- 11:37Parallel Sort
- 12:56Optimizer
- 15:38Shared Library Containers
- 15:58Node Based Containers
- 16:29List Based Containers
- 17:31Associative Containers
- 17:54Unordered Containers
- 18:55Visual Signals
- 20:46Undefined Behavior
- 21:42Extracting Elements
- 22:53Merge
- 24:32Unordered Transparency
- 26:05Special Hash Function
- 27:09More Questions
- 28:26Point








