C++20: The Small Pearls
summary
C++20 features are demonstrated with working code examples linked from the slides and live on Compiler Explorer though some chrono time zone queries time out there. The talk shows the spaceship operator auto-generating six comparisons, consteval/constinit fixes for initialization order, std::span eliminating C array decay, constexpr containers and std::erase_if, the huge chrono/calendar/timezone additions (author needed ~80 pages), fmt/std::format formatting, atomic_shared_ptr currently non lock free on most compilers, semaphores/latches/barriers for sync, and cooperative interruption via std::jthread which all run in the demos.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:10The Plan
- 3:35Comparison Operators
- 9:23Aggregate initialization
- 12:25Constable
- 19:00Standedspan
- 22:45Transform
- 28:02Constexpr
- 30:22Container improvement
- 33:33Dont use signed and unsigned
- 35:29Chrono
- 37:21Time of Day
- 39:13Date
- 46:10Time Zones
- 48:55Formatting
- 52:34Examples
- 53:53FMT
- 57:15Conditionables








