~/talk

Modern C++ Design (part 2 of 2)

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp, software-architecture]
slides:none on file

Argues concrete rules for parameter passing and type design: when to use rvalue-references, reference-qualified overloads, and how to express maybe move semantics; builds a taxonomy of properties (copyable, movable, comparable, Regular) and highlights dependent preconditions as a key pitfall. Shows string_view is a useful but sharp-edged reference type while common span formulations are effectively broken, warns that move-only types imply unique ownership, and recommends preferring self-contained regular value types unless a careful design justifies otherwise.

AI-written summary · about

  1. 0:00Introduction
  2. 2:57Thread safety taxonomy
  3. 6:11Logical state and comparison
  4. 10:23Ordering, copy, and move
  5. 12:33Mutability and traits
  6. 14:15Invariants and encapsulation
  7. 16:41Preconditions
  8. 20:10Aliasing and sharing
  9. 22:15Dependent preconditions
  10. 24:48Regular types
  11. 29:40String view analysis
  12. 32:36Span analysis
  13. 35:56Subsets of regular
  14. 37:32Business logic types
  15. 40:04Structs and invariants
  16. 41:36Reference types
  17. 43:59Q&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.