libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
tcspc::output_stream Concept Reference

Description

Concept that is satisfied when T conforms to the libtcspc output stream interface.

Determines whether T is move-constructible and provides the noexcept member functions is_error(), tell(), and write() with the signatures and return types documented at Output streams.

Concept definition

template<typename T>
concept output_stream =
std::move_constructible<T> &&
requires(T &s, std::span<std::byte const> buf) {
{ s.is_error() } noexcept -> std::same_as<bool>;
{ s.tell() } noexcept -> std::same_as<std::optional<std::uint64_t>>;
{ s.write(buf) } noexcept -> std::same_as<void>;
}
Concept that is satisfied when T conforms to the libtcspc output stream interface.
Definition write_binary_stream.hpp:49