~/talk

C++11 in the Wild: Techniques from a Real Codebase

Talkat CppCon 2014 · on Tuesday, 2014-09-09· at 14:00· Newton· [rust]
slides:none on file

Concrete takeaways: Auto macro implements scope‑exit RAII with lambdas, token‑pasting and __COUNTER__, compiles down to inlined, zero‑overhead code (std::function version shows heavy allocations and calls). make_iterable() wraps two pointers into a begin/end view so legacy pointer+size objects iterate with range‑for. spaceship() gives an efficient tuple comparator that avoids double work by folding elementwise comparisons at compile time. Benchmarks and assembly examples show these ideas actually work.

AI-written summary · about

  1. 0:00Intro
  2. 1:27What we'll cover
  3. 5:33Choose Your Own Digression
  4. 14:46Let's see some codegen!
  5. 24:09Type erasure in a nutshell
  6. 32:30One odd application
  7. 44:01Inside-out containers
  8. 46:23Motivating use case (LLVM)
  9. 50:41First attempt: LLVM to the rescue!
  10. 53:12The idiom we want to use in C++14
~/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.