~/talk

The Small Pearls of C++20

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
slides:none on file

Survey of concrete C++20 additions with code demos and gotchas: shows the three‑way compare auto produces three-way compare yields strong/partial ordering depending on members, demonstrates std::span example modifies underlying vector to avoid pointer/length bugs, uses consteval/constinit for true compile‑time init, uses chrono calendar/timezone + std::format for human schedules (runs on GCC, MSVC has issues), shows atomic wait/notify, atomic_shared_ptr, semaphores/latches/barriers for coordination, stop_token interruption, and reports semaphores on Linux near atomic speed (~10× faster than condition_variable).

AI-written summary · about

  1. 0:00Intro
  2. 0:40The Small Pearls
  3. 2:15Comparison Operator
  4. 4:22Examples
  5. 5:23Threeway comparison operator
  6. 6:35Aggregate initialization
  7. 11:25Constable
  8. 12:58Constant
  9. 14:10Static initialization
  10. 15:24Templates
  11. 17:21Span
  12. 21:52Container Improvements
  13. 24:30Special Functions
  14. 26:02Calendar Time Zone
  15. 31:38Local Time
  16. 33:42Winter Time
  17. 38:11Home of You
  18. 46:17semaphores
  19. 52:09Cooperative interruption
  20. 56:02Stop requests
~/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.