~/talk

Moved-from Objects in C++

Talkat CppCon 2024 · on Sunday, 2024-09-15· [developer-experience]
name:Jon Kalb
github:boostcon
slides:none on file

Argues that C++’s core is uncompromising performance achieved by allowing undefined behavior, then drills into move semantics: moved-from objects are partially formed objects and should only be assigned-to or destroyed. Shows concrete costs and surprises: vector move forces zeroing size/capacity under the standard note, list with sentinel nodes can make moves throw, a viewport ID wrapper forces expensive reallocation or faked accessors, and std::sort with unique_ptr comparators exposes inconsistent guarantees. C++26 tweaks are noted; slides and examples are on the uploader’s links.

AI-written summary · about

  1. 0:00C++ philosophy and goals
  2. 7:43C++ superpower: performance
  3. 11:43Undefined behavior in C++
  4. 23:04Move semantics introduction
  5. 27:36Problem with moved-from objects
  6. 35:55Restrict moved-from objects
  7. 48:11Proposed move semantics
  8. 56:38Safety vs performance
  9. 1:03:38Q&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.