C++20 - the hidden pearls
summary
The talk lists concrete, usable C++20 changes: the three-way (spaceship) operator lets the compiler auto-generate all six comparisons; consteval/constinit force compile-time init or immediate functions; std::span (dynamic extent) gives bounds-aware views of contiguous memory; chrono gains calendar and time zone types (the presenter spent ~80 pages on it); std::format offers Python-like formatting; semaphores, latches, barriers and jthread stop tokens enable fast coordination and cooperative interruption, and synchronized output streams prevent interleaved logging.
AI-written summary · about
chapters (13)
- 0:00Introduction to C++20
- 1:34Spaceship operator
- 6:23Designated initialization
- 9:42Constexpr improvements
- 13:30Template improvements
- 16:57Stood span container
- 20:01Library container updates
- 22:11Safe integer comparisons
- 25:47Chrono calendar expansion
- 30:03Formatting library
- 35:03Concurrency improvements
- 41:35Cooperative interruption
- 56:53Conclusion
related talks
48mThe C++20 Firehose Talk
59mC++20: the small things
01h 03mUnlocking the value of C++20
01h 38mC++20: Reaching for the Aims of C++
01h 01mC++23 - What's In It For You?
01h 03mHow C++20 changes the way we write code
01h 00mC++23 Standard Library Preview
01h 00mC++23: An Overview of Almost All New and Updated Features
