~/talk

C++20 - My Favorite Code Examples

Talkat Meeting C++ 2021 · 2021-11-10..11-12· [rust]
slides:none on file

Presents concrete C++20 code combining features and shows what actually works: spaceship operator for automatic comparisons, ranges views (drop, filter) and the new ranges begin/end helpers, std::format for output, extended chrono calendar/timezone types, concepts and NTTPs, and consteval compile-time merge that builds an array plus size. Demonstrates a constexpr vector workflow that compiles on recent Visual C++ but flags portability limits, returns a compile-time array+count to avoid runtime vector propagation, and documents which snippets succeed and which compilers choke.

AI-written summary · about

  1. 0:00Intro
  2. 0:54Sort
  3. 7:53Filter
  4. 15:05sentinel
  5. 16:57rewrite comparisons
  6. 19:47template parameters
  7. 24:28print dates
  8. 27:58merge
  9. 35:58ranges
  10. 39:00const express
  11. 41:05consteval
  12. 46:43size
  13. 53:24currentzone
  14. 55:11range
  15. 56:44formatter
~/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.