~/talk

To Move or not to Move

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [frontend-architecture]
slides:none on file

Interactive code review that answers "should I std::move here" with concrete rules and failing examples: demonstrates a crashing dangling-reference when returning a local by reference, shows implicit move and RVO so don't std::move returned local variables, proves popping-then-moving from std::vector is undefined behavior, explains const rvalue falls back to copy, allows moving Lvalue refs for swap, and insists to mark move constructors noexcept and to use std::forward for forwarding refs where appropriate.

AI-written summary · about

  1. 0:00Intro
  2. 2:24The motivation for Move Semantics
  3. 8:28What is being called?
  4. 15:04Alternatives
  5. 21:46What's wrong here?
  6. 30:04The proper way - option 2
  7. 36:24Implementing move forgetting noexcept
  8. 45:29Summary (2)
~/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.