~/talk

Reduce: From functional programming to C++17 Fold expressions

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

C++17 introduces fold expressions that let variadic packs reduce in place, enabling compile‑time sums and logical quantifiers; the presenter shows a working compile‑time sum and an on_each printer, and builds boost reduce (expression‑template folds) to fold arbitrary callables, do function composition and carry, and produce an iterator/scan via lazy evaluation. Implementation notes: limited built‑in operator set, identity elements for empties, careful move/ref preservation, non‑constexpr lambdas block full compile‑time use, and the code is a home project not a commercial product.

AI-written summary · about

  1. 0:00Start
  2. 6:50transducers
  3. 12:09on composition
  4. 17:10C++17 fold expressions
  5. 43:09lazy evaluation
~/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.