~/talk

C++20 - My Favourite Code Examples

Talkat C++ on Sea 2021 · 2021-06-30..07-02· [c-and-cpp]
slides:none on file

Shows concrete C++20 recipes: using concepts with requires expressions to select overloads and use compile-time if to choose push_back vs insert; real examples of ranges and views including sentinels, subrange views, lazy pipeable transforms, and sorting up to a sentinel; defaulted spaceship and class non-type template parameters to compare and pass aggregates; concurrency primitives: barrier, jthread+stop_token, binary_semaphore, atomic_ref and wait/notify based ticketing; and std::format plus chrono timezones/clocks with leap‑second handling.

AI-written summary · about

  1. 0:00Intro
  2. 0:53Concepts and Requirements
  3. 8:41Ranges
  4. 14:07End Iterator
  5. 14:22Generic End Iterator
  6. 16:02Special Features
  7. 20:47Comparison Operators
  8. 25:37Views
  9. 33:32Threads
  10. 41:58Chrono
  11. 45:54Time Zones
  12. 49:55Clocks
~/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.