mp-coro
main
Coroutine support tools
mp_coro
awaitable_of
mp_coro::awaitable_of Concept Reference
Detailed Description
Definition at line
83
of file
concepts.h
.
#include <
mp-coro/concepts.h
>
Concept definition
template
<
typename
T,
typename
Value>
concept
mp_coro::awaitable_of
=
awaitable<T>
&&
requires
(T &&t) {
{
detail::get_awaiter
(std::forward<T>(t)) } ->
awaiter_of<Value>
;
}
mp_coro::awaitable_of
Definition:
concepts.h:83
mp_coro::awaitable
Definition:
concepts.h:78
mp_coro::awaiter_of
Definition:
concepts.h:73
mp_coro::detail::get_awaiter
decltype(auto) get_awaiter(T &&awaitable)
Apply member operator co_await if it exists, otherwise, apply global operator co_await if it exists,...
Definition:
get_awaiter.h:32
Generated by
1.9.5