~/talk

C++20: The Small Pearls

Talkat ACCU 2022 · 2022-04-06..04-09· [c-and-cpp]
slides:none on file

C++20 features are demonstrated with working code examples linked from the slides and live on Compiler Explorer though some chrono time zone queries time out there. The talk shows the spaceship operator auto-generating six comparisons, consteval/constinit fixes for initialization order, std::span eliminating C array decay, constexpr containers and std::erase_if, the huge chrono/calendar/timezone additions (author needed ~80 pages), fmt/std::format formatting, atomic_shared_ptr currently non lock free on most compilers, semaphores/latches/barriers for sync, and cooperative interruption via std::jthread which all run in the demos.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10The Plan
  3. 3:35Comparison Operators
  4. 9:23Aggregate initialization
  5. 12:25Constable
  6. 19:00Standedspan
  7. 22:45Transform
  8. 28:02Constexpr
  9. 30:22Container improvement
  10. 33:33Dont use signed and unsigned
  11. 35:29Chrono
  12. 37:21Time of Day
  13. 39:13Date
  14. 46:10Time Zones
  15. 48:55Formatting
  16. 52:34Examples
  17. 53:53FMT
  18. 57:15Conditionables
~/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.