~/talk

C++20 Lambdas: Familiar Template Syntax

Talkat CppCon 2020 · 2020-09-14..09-18· [compilers-and-language-design]
slides:none on file

C++20 adds a template head to lambdas so code that used helper functions just to destructure types can be replaced by an immediately-invoked familiar template lambda, collapsing the std::apply helper and tuple-for-each patterns into a single expression. Examples show unary and binary tuple algorithms using non-type template parameter packs and reference-capture preserves forwarding/value-category. Result is substantially less boilerplate, fewer identifiers, and working, more compact code for tuple and typelist destructuring.

AI-written summary · about

~/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.