D++ (DPP)
C++ Discord API Bot Library
|
Base type for a coroutine, starts on co_await. More...
Public Types | |
using | result_type = R |
The type of the result produced by this coroutine. More... | |
Public Member Functions | |
coroutine ()=default | |
Default constructor, creates an empty coroutine. More... | |
coroutine (const coroutine &)=delete | |
Copy constructor is disabled. More... | |
coroutine (coroutine &&other) noexcept | |
Move constructor, grabs another coroutine's handle. More... | |
~coroutine () | |
Destructor, destroys the handle. More... | |
coroutine & | operator= (const coroutine &)=delete |
Copy assignment is disabled. More... | |
coroutine & | operator= (coroutine &&other) noexcept |
Move assignment, grabs another coroutine's handle. More... | |
auto | operator co_await () |
Friends | |
struct | detail::coroutine::promise_t< R > |
Promise has friend access for the constructor. More... | |
Base type for a coroutine, starts on co_await.
R | Return type of the coroutine. Can be void, or a complete object that supports move construction and move assignment. |
using dpp::coroutine::result_type = R |
The type of the result produced by this coroutine.
|
default |
Default constructor, creates an empty coroutine.
|
delete |
Copy constructor is disabled.
|
inlinenoexcept |
Move constructor, grabs another coroutine's handle.
other | Coroutine to move the handle from |
|
inline |
Destructor, destroys the handle.
|
inline |
Move assignment, grabs another coroutine's handle.
other | Coroutine to move the handle from |
|
friend |
Promise has friend access for the constructor.