dpp::detail::when_any
dpp::detail::when_any::arg_helper_s
dpp::detail::when_any::arg_helper_s< dpp::event_router_t< T > >
dpp::detail::when_any::empty
dpp::detail::when_any::void_result
uint8_t await_state dpp::detail::when_any::await_state waiting = 1 << 0

Object is being awaited.

done
= 1 << 1

Object was resumed.

ready
= 1 << 2

Result is ready to retrieve.

dangling
= 1 << 3

Object was destroyed.

Current state of a when_any object.

typename T
arg_helper_s< std::remove_cvref_t< T > > using dpp::detail::when_any::arg_helper = arg_helper_s<std::remove_cvref_t<T>> arg_helper dpp::detail::when_any::arg_helper

Helper struct with a method to convert an awaitable parameter to the actual value it will be stored as. For example if given an event_router, store the awaitable, not the event_router.

typename T
typename arg_helper_s< T >::type using dpp::detail::when_any::awaitable_type = typename arg_helper_s<T>::type awaitable_type dpp::detail::when_any::awaitable_type

Alias for the actual type that an awaitable will be stored as in a when_any. For example if given an event_router, store the awaitable, not the event_router.

typename T
std::conditional_t< std::is_void_v< T >, empty, T > using dpp::detail::when_any::storage_type = std::conditional_t<std::is_void_v<T>, empty, T> storage_type dpp::detail::when_any::storage_type

Actual type a result will be stores as in when_any.

Internal cogwheels for dpp::when_any.