mp-coro main
Coroutine support tools
mp_coro::awaitable Concept Reference

Detailed Description

Definition at line 78 of file concepts.h.

#include <mp-coro/concepts.h>

Concept definition

template<typename T>
concept mp_coro::awaitable = requires(T &&t) {
{ detail::get_awaiter(std::forward<T>(t)) } -> 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