Gain a Splash of New Skills - Coursera+ Annual Nearly 45% Off
Learn Backend Development Part-Time, Online
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the practical implementation of std::generator in C++23 through this comprehensive conference talk that demonstrates how to leverage coroutines for generating sequences of values. Learn about the evolution from C++20's low-level coroutine support, which required extensive boilerplate code, to C++23's standardized generator interface that simplifies coroutine usage. Discover how std::generator serves as a standard customization point for the compiler, configuring general coroutine aspects while defining APIs for coroutine interaction. Master the practical application of the std::generator class template and understand how it enables coroutines to produce value sequences that can be processed using range interfaces. Gain insights into special attributes, implementation details, and critical pitfalls to avoid when working with coroutines and std::generator in real-world scenarios. Understand how coroutines function as suspendable and resumable functions that allow programs to switch between different execution paths, and see how std::generator provides a clean, standardized approach to one of the most common coroutine use cases.
Syllabus
C++23: using std::generator in practice - Nicolai Josuttis - Meeting C++ 2025
Taught by
Meeting Cpp