...

/

Coroutine Types in the Coroutines Library

Coroutine Types in the Coroutines Library

Get a detailed introduction to the coroutines library, supposedly a part of C++23.

We'll cover the following...

The coroutines library, the modularized standard library, and the executors have something in common: they are supposed to be part of C++23.

Coroutines in C++20 are not more than a framework for the implementation of concrete coroutines. This means that it is up to the software developer to implement coroutines. The cppcoro library from Lewis Baker gives the first idea how a library of coroutines could look like. His library provides high-level coroutines, which C++20 does not offer.

🔑 Using cppcoro

The cppcoro library is based on the coroutines TS. The TS stands for technical specification and is the preliminary version of the coroutines functionality we get with C++20. ...