#include class Fibo { class State // keeps track of the coroutine's state { ... }; std::coroutine_handle d_handle; public: using promise_type = State; explicit Fibo(std::coroutine_handle handle); ~Fibo(); size_t next(); };