~/talk

How C++20 Changes the Way We Write Code

Talkat CppCon 2020 · 2020-09-14..09-18· [c-and-cpp]
links:none on file
slides:none on file

Claims C++20 reshapes C++ as much as C++11, centering on the coroutines, concepts, ranges, and modules quartet. Coroutines produce compiler-generated frames, a promise type, and a generator object (heap-allocated unless optimized to stack); use cppcoro or wait for std::generator in C++23. Concepts give readable requires syntax and precise constraints, fixing painful SFINAE patterns. Ranges provide lazy views, pipe composition and projections (views::iota, no explicit loops). Modules replace headers with compiler BMIs, prevent macro leakage and speed builds. std::erase removes the erase‑remove idiom.

AI-written summary · about

  1. 0:00Introduction to C++20
  2. 1:37Why C++20 is special
  3. 5:50Introduction to coroutines
  4. 12:45Understanding the API
  5. 22:38Implementing generators
  6. 28:42Asynchronous coroutines
  7. 32:17Introduction to concepts
  8. 37:37Advanced concept design
  9. 43:36The ranges library
  10. 51:20Introduction to modules
  11. 58:36Final takeaways and fixes
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.