~/talk

Let's Move

Talkat Meeting C++ 2020 · 2020-11-12..11-14· [rust]
slides:none on file

Implements a small email class, fills a vector with 100000 addresses and measures: initialization ~220 ms, sort ~4–5 s. Shows concrete optimizations: take string by value and move halves init time; return const reference for lvalues and value for rvalues (overload getter for &&) speeds sort ~10×; remove_if reveals moved‑from invariants, so code adds move ctor/assign that restore a valid state. Adding noexcept on moves drops realloc cost (about 250→200 ms). Demonstrates forwarding/universal references and compiler differences (gcc, MSVC).

AI-written summary · about

  1. 0:00Start
  2. 1:57Check State
  3. 2:36Output Operator
  4. 10:33Sort Function
  5. 17:55Implementation for Temporary Objects
  6. 24:33Move Semantics
  7. 40:43Print Statements
  8. 47:26Universal Reference
  9. 48:17Forwarding References
~/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.