~/talk

C++: λ Demystified

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [rust]
slides:none on file

Demonstrates how lambdas compile by using C++ Insights to show the closure class, call operator, and conversion to a function pointer for stateless lambdas; shows a surprising size change from 12 to 8 bytes by reordering captures and how init-capture creates named members; explains generic lambdas become templated call operators, dangling-reference capture causes undefined behavior, capturing this copies a pointer, and C++20 adds move capture for efficient pack forwarding and default-constructible lambdas plus practical RAII cleanup via a stored lambda.

AI-written summary · about

  1. 0:00Start
  2. 2:23Lambdas and the Evolution of Lambdas
  3. 6:23Trailing Return Type
  4. 8:50C + + Insights
  5. 18:03Returning Dead Static Function
  6. 23:04Generic Lambdas and Generic Landers
  7. 25:13What Can We Do with Generic Lambdas
  8. 26:23The Dangling Reference Strap
  9. 43:08Parameter Lists
  10. 46:04File Descriptor Leak
  11. 46:48Implementation of Final Action
  12. 48:34Lambda Captures
  13. 55:12Examples of 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.