~/talk

How to Argue(ment)

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

Catalogs about 42 syntactic ways to pass parameters then narrows them to ~16 useful cases, with concrete names and rules: prefer snapshot by value when cheap, use observer during call (const ref or raw pointer) only for call-scoped access, use raw pointers for optional observability and smart pointers to express ownership and transfer ownership (unique) or shared participation (shared/weak). Flags nonsensical forms (const rvalue refs, pointer reseating), recommends profiling for value vs. ref tradeoffs.

AI-written summary · about

  1. 0:00Intro
  2. 0:49The function signature
  3. 2:53Best Practices
  4. 7:24Pass by value
  5. 16:10Pass by reference
  6. 17:44Pass by R-Value reference
  7. 21:04Pass by (const) pointer
  8. 32:27Lifetime Pointers
  9. 33:04Pass by unique_ptr
  10. 41:39Pass by R-Value Ref shared_ptr
  11. 45:30Avoid "Surprising" Sharing
  12. 47:56Guidelines
~/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.