~/talk

C++23: using std::generator in practice

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [rust]
slides:none on file

Explains that C++23 adds std::generator as the first standard coroutine interface, shows live code (generator-as-a-view, begin/++/ semantics), and builds working examples: Fibonacci generator, a concurrent-queue reader, and a range-based pipeline. Covers concrete pitfalls: don’t pass parameters by reference*, generators are non‑copyable non‑const, state defaults to heap allocation (PMR option shown), exceptions propagate via begin/++. Includes slides and practical code, not just theory.

AI-written summary · about

  1. 0:00C++23 and std::generator intro
  2. 1:04What are coroutines and why they matter
  3. 10:25Function to coroutine conversion
  4. 16:27How std::generator works
  5. 28:11Fibonacci with std::generator
  6. 33:55Coroutines vs manual state
  7. 39:23Concurrent data processing
  8. 45:02Caveats with std::generator
  9. 53:17Advanced std::generator features
  10. 57:14Summary and coroutines future
~/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.