dpp::when_any::state_t
std::tuple< Args... > std::tuple<Args...> dpp::when_any< Args >::state_t::awaitables awaitables dpp::when_any::state_t::awaitables

Awaitable objects to handle.

detail::std_coroutine::coroutine_handle detail::std_coroutine::coroutine_handle dpp::when_any< Args >::state_t::handle handle dpp::when_any::state_t::handle {}

Coroutine handle to resume after finishing an awaitable.

size_t size_t dpp::when_any< Args >::state_t::index_finished index_finished dpp::when_any::state_t::index_finished = std::numeric_limits<std::size_t>::max()

Index of the awaitable that finished. Initialized to the maximum value of std::size_t.

std::atomic< uint8_t > std::atomic<uint8_t> dpp::when_any< Args >::state_t::owner_state owner_state dpp::when_any::state_t::owner_state {}

State of the when_any object.

detail::when_any::await_state

variant_type variant_type dpp::when_any< Args >::state_t::result result dpp::when_any::state_t::result {}

Result or exception, as a variant. This will contain the result of the first awaitable to finish.

typename... Args_ Args_
dpp::when_any< Args >::state_t::state_t
(Args_ &&... args)
state_t
dpp::when_any::state_t::state_t
Args_ &&... args

Constructor for the internal state. Its arguments are used to construct each awaitable.

State shared between all the jobs to spawn.

T
coroutine_handle
dpp::when_any< Args >::state_t
awaitables
result
handle
index_finished
owner_state
size_t
std::atomic< T >
ptr
std::atomic< uint8_t >
ptr
< uint8_t >
tuple< Args... >
variant< std::exception_ptr, std::remove_cvref_t< detail::when_any::storage_type< detail::awaitable_result< Args > > >... >
uint8_t
- dpp::when_any::state_t
  awaitables
- dpp::when_any::state_t
  handle
- dpp::when_any::state_t
  index_finished
- dpp::when_any::state_t
  owner_state
- dpp::when_any::state_t
  result
- dpp::when_any::state_t
  state_t