~/talk

Partially-formed Objects for fun and profit

Talkat Meeting C++ 2020 · 2020-11-12..11-14· [frontend-architecture]
name:Marc Mutz
links:none on file
slides:none on file

Argues that moved-from values must be treated as partially formed, distinguishes safe vs unsafe functions by whether they let partially formed objects escape (example: std::next is unsafe, std::advance is safe), and gives actionable fixes: prefer erase/erase‑remove over raw remove, prefer std::exchange or resetting over blind std::move, ensure ADL swap or make move‑assignment self‑swap‑safe. Uses C++98→11→20 examples (remove/erase idiom, input iterators, concepts, move semantics) and a flat_map case where the default move requires extra work.

AI-written summary · about

  1. 0:00Start
  2. 1:12Bonus Slides
  3. 1:43Disclaimer
  4. 4:34Partially Formed State
  5. 6:49Standard String
  6. 10:12Input Iterator Requirements
  7. 13:18Guideline
  8. 16:16Summary
  9. 17:17Move Semantics
  10. 24:21Standard Arrays
  11. 25:31Move Is an Unsafe Operation
  12. 28:08Move Semantics Summary
  13. 29:27Composability
  14. 30:29Partially Formed States Are Closed under Composition
  15. 32:46Lemma
  16. 38:59Howard Hint Extension
  17. 39:13Attribute Stem Element of Programming Swap
~/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.