~/talk

Templates Made Easy With C++20

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

Argues that C++20 concepts plus if consteval and fold expressions let teams replace SFINAE-heavy template hacks with readable code, showing concrete rewrites: a constexpr Fibonacci, an In-Place Processor concept for audio buffers (process(span<float>)), a block processor using std::invocable to avoid std::function allocations, and a property system that uses a fold to register name/defaults with get_default_value overloads that pick value, function, or default-initialized. Live TDD builds an A/B processor with conditional reset and catches a common missing requires mistake.

AI-written summary · about

  1. 0:00Introduction
  2. 10:10Traditional template basics
  3. 20:52C++20 concepts
  4. 31:47Advanced requires clauses
  5. 40:16Live coding with TDD
  6. 53:57Q&A
~/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.