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

concept for a valid type that behaves as a write buffer awaitable This requires that value_type x; co_await a = x is valid. More...

#include <async_ops.hpp>

Concept definition

template<typename Awaitable>
concept uni20::async::write_buffer_awaitable = requires(Awaitable& a, typename Awaitable::value_type v) {
typename std::remove_cvref_t<decltype(get_awaiter(a))>::value_type;
{ get_awaiter(a).await_resume() = std::move(v) };
}
concept for a valid type that behaves as a write buffer awaitable This requires that value_type x; co...
Definition async_ops.hpp:52
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 write buffer awaitable This requires that value_type x; co_await a = x is valid.