~/lightning

Lightning Talk: The Decade Long Rewind: Lambdas in C++

Lightningat CppCon 2022 · 2022-09-11..09-16· [javascript]
links:none on file
slides:none on file

Survey of lambda changes from C++11→C++20 with concrete claims and examples: lambdas produce unique unnamed closure types so two identical lambdas have different closure types, captures support value/ref and mutable semantics demonstrated by a small snippet that mutates a captured-by-value copy, C++14 adds default params generic lambdas and generalized/move captures, C++17 brings constexpr lambdas and capture of this by value, C++20 adds template-style lambdas and parameter-pack captures enabling compile-time algorithms via constexpr lambdas and it shows these techniques actually compile and run.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30What are Lambdas
  3. 2:04C14 Lambdas
  4. 2:58C17 Lambda
~/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.