~/talk

The Many Variants of std::variant

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [rust]
links:none on file
slides:none on file

History of std::variant focuses on concrete design decisions not slogans: the final C++17 variant implements an empty state on assignment failure with a heap backup strategy to preserve the basic exception guarantee, chooses comparisons by alternative then value to preserve transitivity, and uses visitation as the O(1) access pattern absent language support. Multiple proposals, polls and thousands of emails shape tradeoffs among space, runtime and compile-time costs; the library solution lands and ships.

AI-written summary · about

  1. 0:00Introduction
  2. 9:46Designing C++ features
  3. 23:40Boost variant history
  4. 31:55Low-latency trading variant
  5. 34:03C++17 variant collaboration
  6. 42:11Evaluating C++17 proposals
  7. 51:02Finalizing C++17 variant
  8. 57:05Closing thoughts
~/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.