Debian Codegraph @

yo/coroutines/demo/fsa_awaiter/letter/letter.h

raw symbols SCIP
1 #ifndef INCLUDED_LETTER_
2 #define INCLUDED_LETTER_
3
4 #include "../../promisebase/promisebase.h"
5
6 class Letter
7 {
8 struct State: public PromiseBase<Letter, State>
9 {};
10
11 std::coroutine_handle<State> d_handle;
12
13 public:
14 using promise_type = State;
15 using Handle = std::coroutine_handle<State>;
16
17 explicit Letter(Handle handle);
18 ~Letter();
19
20 Handle handle() const;
21 };
22
23 inline Letter::Handle Letter::handle() const
24 {
25 return d_handle;
26 }
27
28 extern Letter g_letter;
29
30 #endif