Sample code from my CppCon 2022 presentation, "C++ Coroutines, from scratch"
The actual code is on different branches - one for each evolution of the example:
- serial for the initial serial (depth-first) version
- batch for the batched version using lambda-based continuations
- generalized-batch for the generalisation that is a stepping stone to coroutines
- coroutines for the full coroutines version