~/talk

Unlocking the Value of C++20 Features

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp]
links:none on file
slides:none on file

Practical, example-rich tour of C++20 that shows concrete wins: use of remove_cvref to replace verbose decay patterns, a span-based BST builder that avoids index bugs, working consteval polymorphism that creates compile-time arrays of virtual objects, constexpr allocation and NTTP string tricks (user literal + fixed_string), and library features like std::popcount, std::endian, std::bit_cast plus a custom wider bit_cast on GitHub. Concurrency demos use jthread, stop_token, semaphore, latch, barrier with runnable snippets and observed correct behavior.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:48C++20 big four features overview
  3. 7:54Abbreviated functions and concepts
  4. 11:53Remove CV ref and library changes
  5. 12:13Designated initializers
  6. 13:36Range-based loops with init-statement
  7. 14:58Defaulted comparison operators
  8. 16:28Spaceship operator explained
  9. 19:01No unique address feature
  10. 21:30Lambda parameter expansion
  11. 22:33Generic lambdas
  12. 25:45Consteval and allocation
  13. 28:17NTTP relaxation
  14. 29:44User-defined literals
  15. 30:50Conditional explicit
  16. 31:34Consteval polymorphism
  17. 33:01Library features overview
  18. 34:01Safe comparisons
  19. 34:47Span container view
  20. 37:56Bit header utilities
  21. 39:44Bit manipulation functions
  22. 42:07Bit cast safety
  23. 44:15Source location tracking
  24. 46:07Jthread and joinable threads
  25. 47:30Semaphores in C++20
  26. 49:37Stop tokens and sources
  27. 51:03Latches and barriers
  28. 52:32Barrier callbacks
  29. 54:44Summary and encouragement
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.