dpp::when_any::result
when_any.h
class friend class when_any< Args... > when_any< Args... > dpp::when_any::result::when_any< Args... > when_any< Args... >
std::shared_ptr< state_t > std::shared_ptr<state_t> dpp::when_any< Args >::result::shared_state shared_state dpp::when_any::result::shared_state

Reference to the shared state to pull the data from.

dpp::when_any< Args >::result::result
()=delete
result
dpp::when_any::result::result

Default construction is deleted.

dpp::when_any< Args >::result::result
(std::shared_ptr< state_t > state)
result
dpp::when_any::result::result
std::shared_ptr< state_t > state

Internal constructor taking the shared state.

dpp::when_any< Args >::result::result
(const result &)=delete
result
dpp::when_any::result::result
const result &

This object is not copyable.

dpp::when_any< Args >::result::result
(result &&)=default
result
dpp::when_any::result::result
result &&

Move constructor.

size_t N N
result_t< N > & result_t< N > & dpp::when_any< Args >::result::get () & get dpp::when_any::result::get

Retrieve the non-void result of an awaitable.

N

Index of the result to retrieve. Must correspond to index().

???

Throws any exception triggered at construction, or std::bad_variant_access if N does not correspond to index()

Result of the awaitable as a reference.

size_t N N
result_t< N > && result_t< N > && dpp::when_any< Args >::result::get () && get dpp::when_any::result::get

Retrieve the non-void result of an awaitable.

N

Index of the result to retrieve. Must correspond to index().

???

Throws any exception triggered at construction, or std::bad_variant_access if N does not correspond to index()

Result of the awaitable as an rvalue reference.

size_t N N
const result_t< N > & const result_t< N > & dpp::when_any< Args >::result::get () const & get dpp::when_any::result::get

Retrieve the non-void result of an awaitable.

N

Index of the result to retrieve. Must correspond to index().

???

Throws any exception triggered at construction, or std::bad_variant_access if N does not correspond to index()

Result of the awaitable as a cpnst reference.

size_t N N
void void dpp::when_any< Args >::result::get ()=delete get dpp::when_any::result::get (detail::when_any::void_result<result_t<N>>)

Cannot retrieve a void result.

size_t size_t dpp::when_any< Args >::result::index () const noexcept index dpp::when_any::result::index

Retrieve the index of the awaitable that finished first.

size_t Index of the awaitable that finished first, relative to the template arguments of when_any

bool bool dpp::when_any< Args >::result::is_exception () const noexcept is_exception dpp::when_any::result::is_exception

Checks whether the return of the first awaitable triggered an exception, that is, a call to get() will rethrow.

Whether or not the result is an exception

result & result & dpp::when_any< Args >::result::operator= (const result &)=delete operator= dpp::when_any::result::operator= const result &

This object is not copyable.

result & result & dpp::when_any< Args >::result::operator= (result &&)=default operator= dpp::when_any::result::operator= result &&

Move assignment operator.

Object returned by operator co_await() on resumption. Can be moved but not copied.

- dpp::when_any::result
  get
- dpp::when_any::result
  get
- dpp::when_any::result
  get
- dpp::when_any::result
  get
- dpp::when_any::result
  index
- dpp::when_any::result
  is_exception
- dpp::when_any::result
  operator=
- dpp::when_any::result
  operator=
- dpp::when_any::result
  result
- dpp::when_any::result
  result
- dpp::when_any::result
  result
- dpp::when_any::result
  result
- dpp::when_any::result
  shared_state
- dpp::when_any::result
  when_any< Args... >