Overview
Explore the intricacies of C++20 coroutines in this comprehensive conference talk from ACCU 2024. Delve into the advanced topic of coroutines, examining their fundamental concept as functions that can be suspended and resumed. Gain insights into the complex boilerplate required and understand why this feature is primarily geared towards experienced C++ programmers. Learn about the coroutine frame, coroutine handle, promise_type, awaiters, awaitables, and the necessary interfaces. Compare the perspectives of user code and compiler requirements, discovering how to bridge the gap between them. Investigate the limited additions in C++23, focusing on std::generator. Through detailed explanations and code examples, develop a deeper understanding of this powerful language feature and its potential applications in modern C++ programming.
Syllabus
C++ Coroutines - Don’t Try This at Home - Lieven de Cock - ACCU 2024
Taught by
ACCU Conference