C++ coroutine destruction order This article presents this pseudocode for how the compiler transforms a coroutine function: