8#ifndef GRIDFORMAT_ENCODING_ENCODED_FIELD_HPP_
9#define GRIDFORMAT_ENCODING_ENCODED_FIELD_HPP_
17#include <gridformat/common/precision.hpp>
18#include <gridformat/common/exceptions.hpp>
27template<std::derived_from<Field> F, Concepts::Encoder<std::ostream> Encoder>
30 template<std::convertible_to<const F&> _F>
31 requires(std::is_lvalue_reference_v<_F>)
34 , _encoder(std::move(enc))
37 friend std::ostream& operator<<(std::ostream& s,
const EncodedField& field) {
38 auto encoded = field._encoder(s);
39 field._field.visit_field_values([&] <
typename T> (std::span<const T> data) {
50template<
typename F,
typename Enc>
Concepts related to data encoding.