#ifndef INCLUDED_DIGIT_ #define INCLUDED_DIGIT_ #include "../../promisebase/promisebase.h" class Digit { struct State: public PromiseBase {}; std::coroutine_handle d_handle; public: using promise_type = State; using Handle = std::coroutine_handle; explicit Digit(Handle handle); ~Digit(); Handle handle() const; }; inline Digit::Handle Digit::handle() const { return d_handle; } extern Digit g_digit; #endif