Coroutines in the Standard Library
Functions that can suspend and resume (`co_await`, `co_yield`, `co_return`).
Advanced
C++23 adds std::generator<T>; most coroutine types still come from libraries.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.