~/talk

“Modern C++ Design (part 1 of 2)”

Talkat CppCon 2018 · 2018-09-23..09-28· [frontend-architecture]
slides:none on file

Argues that the real atom of C++ API design is the overload set and that copy vs move should be treated as that overload set (move as an optimization of copy), gives concrete rules for parameter passing: prefer const T& for unknowns, overload const T& and T&& when move cost matters, pass by value when the function work dwarfs a move, warns against equals-delete to enforce lifetimes, promotes string_view/span (and type-erased AnySpan) for non-owning parameters, and shows ref-qualified methods express maybe move or “call once” semantics.

AI-written summary · about

  1. 0:00Introduction to API design
  2. 3:00The overload set
  3. 5:23Overload set guidelines
  4. 12:22Copy and move semantics
  5. 16:48Deleting overload members
  6. 20:18Overloading for move-only
  7. 22:17Parameter passing techniques
  8. 29:43Non-owning reference types
  9. 37:11The danger of dangling views
  10. 39:05Method qualifiers
  11. 43:43Const and thread safety
  12. 46:44Q&A and conclusion
~/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.