GridFormat 0.4.0
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
GridFormat::Concepts::Decoder Concept Reference

Decoders allow decoding spans of characters or directly from an input stream.

#include <concepts.hpp>

Concept definition

template<typename T>
concept GridFormat::Concepts::Decoder = requires(const T& decoder,
std::istream& input_stream,
std::span<char> characters) {
{ decoder.decode(characters) } -> std::convertible_to<std::size_t>;
{ decoder.decode_from(input_stream, std::size_t{}) } -> std::same_as<Serialization>;
}
Decoders allow decoding spans of characters or directly from an input stream.
Definition: concepts.hpp:35