Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::async::read_buffer_awaitable_of Concept Reference

concept for a valid type that behaves as a read buffer awaitable for type T. More...

#include <async_ops.hpp>

Concept definition

template<typename Awaitable, typename T>
requires(Awaitable a) { requires std::constructible_from<T, decltype(get_awaiter(a).await_resume())>; }
concept for a valid type that behaves as a read buffer awaitable for type T.
Definition async_ops.hpp:72
decltype(auto) get_awaiter(U &&u) noexcept
for an awaitable a, return the actual Awaitable object returned by co_await
Definition awaiters.hpp:225

Detailed Description

concept for a valid type that behaves as a read buffer awaitable for type T.

That is, the expression T(co_await a) is valid.