is_awaitable<T>::value is_awaitable_v<T>
Synopsis
Declared in <folly/coro/Traits.h>
template<typename T>
struct is_awaitable
: std::disjunction</* implementation-defined */, /* implementation-defined */, is_awaiter<T>>
Description
Query if a type, T, is awaitable within the context of any coroutine whose promise_type does not have an await_transform() that modifies what is normally awaitable.
A type, T, is awaitable if it is an Awaiter, or if it has either a member operator co_await() or a free‐function operator co_await() that returns an Awaiter.
Base Classes
Name |
Description |
|
Created with MrDocs