Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

C++23 - Using std::generator in Practice

Meeting Cpp via YouTube

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

Reviews

Start your review of C++23 - Using std::generator in Practice

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.