~/talk

Lambdas - uses and abuses

Talkat Meeting C++ 2020 · 2020-11-12..11-14· [javascript]
links:none on file
slides:none on file

Claims specific behavior of C++ lambdas: every lambda produces a unique closure type, C++20 adds explicit template parameters, default construction, pack-init captures and structured-binding captures, but recursive lambdas remain unsupported so recursion uses a Y combinator/inheritance trick. Implements concrete utilities: make_task, log_init, multi-destination logger and a chain of responsibility built by inheriting from multiple closure types, using fold expressions, aggregate initialization and deduction guides; examples compile and avoid dynamic polymorphism.

AI-written summary · about

  1. 0:00Start
  2. 14:30Lambdas in C++20: init capture pack expansion
  3. 16:31Lambdas in C++20: recursive lambdas
  4. 26:16Recursive lambdas: better composition Composing through inheritance
  5. 38:43Chain of responsibility: multiple loggers A typical chain of responsibility
~/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.