~/talk

A Kaleidoscope of C++ Lambdas

Talkat C++ on Sea 2024 · 2024-07-02..07-05· [c-and-cpp]
links:none on file
slides:none on file

Covers concrete lambda evolution and gotchas across C++11→C++26: shows how init captures let you move-only capture and how C++14 adds generic lambdas and parameter packs, C++17 adds copy-of-this and constexpr closure, C++20 brings explicit template parameters and better forwarding, and C++23 finally enables self-referential lambdas in C++23 for recursion. Demonstrates immediate invocation for constexpr/global initialization, replacement of std::bind with lambdas, and the frequent bug where capture defaults bite by capturing the surrounding object by reference, with fixes and idiomatic patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 2:29Lambda history
  3. 10:11How lambdas work
  4. 15:16Lambda capture pitfalls
  5. 17:45Lambdas C++11 to C++23
  6. 34:28Advanced lambda captures
  7. 41:31Practical applications of lambdas
  8. 59:14Conclusion & Q&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.