dpp::detail::coroutine::promise_t
coroutine.h
typename R
std::exception_ptr std::exception_ptr dpp::detail::coroutine::promise_t< R >::exception exception dpp::detail::coroutine::promise_t::exception {nullptr}

Pointer to an uncaught exception thrown by the coroutine.

std_coroutine::coroutine_handle std_coroutine::coroutine_handle dpp::detail::coroutine::promise_t< R >::parent parent dpp::detail::coroutine::promise_t::parent {nullptr}

Handle of the coroutine co_await-ing this coroutine.

std::optional< R > std::optional<R> dpp::detail::coroutine::promise_t< R >::result result dpp::detail::coroutine::promise_t::result {}

Return value of the coroutine.

final_awaiter< R > final_awaiter< R > dpp::detail::coroutine::promise_t< R >::final_suspend () const noexcept final_suspend dpp::detail::coroutine::promise_t::final_suspend

Function called by the standard library when reaching the end of a coroutine.

final_awaiter<R> Resumes any coroutine co_await-ing on this

dpp::coroutine< R > dpp::coroutine< R > dpp::detail::coroutine::promise_t< R >::get_return_object () get_return_object dpp::detail::coroutine::promise_t::get_return_object

Function called to get the coroutine object.

std_coroutine::suspend_always std_coroutine::suspend_always dpp::detail::coroutine::promise_t< R >::initial_suspend () const noexcept initial_suspend dpp::detail::coroutine::promise_t::initial_suspend

Function called by the standard library when the coroutine start.

std::suspend_always Always suspend at the start, for a lazy start

void void dpp::detail::coroutine::promise_t< R >::return_value (const R &expr) return_value dpp::detail::coroutine::promise_t::return_value const R & expr std::copy_constructible<R>

Function called by the standard library when the coroutine co_returns a value.

Stores the value internally to hand to the caller when it resumes.

expr

The value given to co_return

void void dpp::detail::coroutine::promise_t< R >::return_value (R &&expr) return_value dpp::detail::coroutine::promise_t::return_value R && expr std::move_constructible<R>

Function called by the standard library when the coroutine co_returns a value.

Stores the value internally to hand to the caller when it resumes.

expr

The value given to co_return

typename T
void void dpp::detail::coroutine::promise_t< R >::return_value (T &&expr) return_value dpp::detail::coroutine::promise_t::return_value T && expr (!std::is_same_v<R, std::remove_cvref_t<T>> && std::convertible_to<T, R>)

Function called by the standard library when the coroutine co_returns a value.

Stores the value internally to hand to the caller when it resumes.

expr

The value given to co_return

void void dpp::detail::coroutine::promise_t< R >::unhandled_exception () noexcept unhandled_exception dpp::detail::coroutine::promise_t::unhandled_exception

Function called when an exception escapes the coroutine.

Stores the exception to throw to the co_await-er

Promise type for coroutine.

dpp::detail::coroutine::promise_t< R >
dpp::detail::coroutine::promise_t< void >
< void >
dpp::detail::coroutine::promise_t< R >
parent
result
exception
exception_ptr
optional< R >
coroutine_handle
- dpp::detail::coroutine::promise_t
  exception
- dpp::detail::coroutine::promise_t
  final_suspend
- dpp::detail::coroutine::promise_t
  get_return_object
- dpp::detail::coroutine::promise_t
  initial_suspend
- dpp::detail::coroutine::promise_t
  parent
- dpp::detail::coroutine::promise_t
  result
- dpp::detail::coroutine::promise_t
  return_value
- dpp::detail::coroutine::promise_t
  return_value
- dpp::detail::coroutine::promise_t
  return_value
- dpp::detail::coroutine::promise_t
  unhandled_exception