mp-coro main
Coroutine support tools
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>;
}
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