Lely core libraries 2.3.4
|
The parent class for function objects used as stackless coroutines. More...
#include <coroutine.hpp>
The parent class for function objects used as stackless coroutines.
Derived classes use co_reenter (this) { ... }
in their implementation of operator()
to define the body of the coroutine. Note that local variables are not stored between invocations. It is recommended to use data members for variables that need to be restored.
Definition at line 48 of file coroutine.hpp.