~/talk

Enough TMP to write a Variant

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [frontend-architecture]
links:none on file
slides:none on file

Claims a practical path from basic TMP to a working std::variant implementation that compiles under C++20 and fits less than 500 lines. Shows concrete tools: recursive union storage, index_sequence math, CTAD for a compile-time switch and macro-unrolled branches to get a jump table, plus multiple-dispatch handling, return-type deduction, noexcept and SFINAE. Demonstrates error-reporting via a no common type tag, discusses compile-time performance tradeoffs and asserts the implementation actually builds and debugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40What is Variant
  3. 3:50Library
  4. 7:22Integer List
  5. 8:22Type by Index
  6. 10:42Instance off
  7. 12:15Forward
  8. 13:45Union
  9. 18:37Switch
  10. 23:25Implementation
  11. 28:44Concept Friendly
  12. 33:32One Case
~/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.