Articles & Books

C++ coroutines: The lifetime of objects involved in the coroutine function--Raymond Chen

The series continue.

C++ coroutines: The lifetime of objects involved in the coroutine function

by Raymond Chen

From the article:

We finally hooked up the last missing piece of our coroutine promise implementation. Before we can look at the tradeoffs we’ve made, let’s step back and follow the lifetime of the various objects involved in the coroutine function.