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

Concept for a type that behaves like an asynchronous writer that is also readable: it has a write() function that returns an awaiter that can be assigned from the nested value_type, and also read from. More...

#include <async_ops.hpp>

Concept definition

template<typename T>
concept uni20::async::async_read_writer = requires(T t) {
requires async_reader<T>;
requires async_writer<T>;
requires emplace_buffer_awaitable<decltype(t.write())>;
}
Concept for a type that behaves like an asynchronous writer that is also readable: it has a write() f...
Definition async_ops.hpp:136
An async_reader is satisfied if .read() returns an async read buffer.
Definition async_ops.hpp:95
An async_writer is satisfied if .write() returns a buffer supporting emplace(...).
Definition async_ops.hpp:104
concept for a valid type that supports in-place construction via emplace(...)
Definition async_ops.hpp:59

Detailed Description

Concept for a type that behaves like an asynchronous writer that is also readable: it has a write() function that returns an awaiter that can be assigned from the nested value_type, and also read from.