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

concept for a valid type that behaves as a read buffer awaitable This requires that the awaiter has a value_type and await_resume() is available. More...

#include <async_ops.hpp>

Concept definition

template<typename Awaitable>
concept uni20::async::read_buffer_awaitable = requires(Awaitable& a) {
typename std::remove_cvref_t<decltype(get_awaiter(a))>::value_type;
{ get_awaiter(a).await_resume() };
}
concept for a valid type that behaves as a read buffer awaitable This requires that the awaiter has a...
Definition async_ops.hpp:44
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 This requires that the awaiter has a value_type and await_resume() is available.