How C++20 changes the way we write code
summary
Argues C++20 actually rewrites how code is authored by adding four concrete features: coroutines (demonstrated with a handmade generator and promise that compiles and works but is fiddly), concepts (simple, readable constraints replacing enable_if gymnastics), ranges (lazy view pipelines replacing intermediate containers), and modules (binary module interface speeds compilation and hides headers). Shows implementation choices, heap vs stack optimizations, the standard jumps to ~1800 pages, and recommends using Lewis Baker’s cppcoro or waiting for std::generator in C++23.
AI-written summary · about
chapters (16)
- 0:00Start
- 5:56Quarantines
- 7:02Pure Function
- 10:57Lambdas
- 16:19Promise Type
- 24:13The Promise Type
- 25:22Yield Value Function
- 33:08Functions
- 41:25Function Template
- 42:00Requires Clauses
- 44:10Ranges
- 45:45Projections
- 46:33Declaration of Ranges Sort
- 47:06Permutable Concept
- 53:32Headers
- 56:23Macros








