~/talk

“How to Write Well-Behaved Value Wrappers”

Talkat CppCon 2018 · 2018-09-23..09-28
links:none on file
slides:none on file

Shows how implementing wrappers like std::optional or pair actually breaks or costs performance: missing noexcept makes std::vector turn moves into copies (example: 100k copies vs ~200k moves), hand-rolling comparison overloads disappears with operator<=>, explicit-converting constructors need conditional explicitness (C++20 fixes), conditional deletion and triviality require base-class work today to preserve register passing, and the deducing this proposal fixes SFINAE-unfriendly callables and ref-qualified accessors.

AI-written summary · about

  1. 0:00Intro
  2. 0:25Types with value-semantics which can store objects of any type
  3. 7:05noexcept Propagation
  4. 16:13Unsurprising (With a ton of code)
  5. 23:53Ref-Qualified Accessor Functions
  6. 37:00How to Write Well-Behaved Value Wrappers
~/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.