25 std::optional<T>
value{std::nullopt};
101 return value.has_value();
A lightweight wrapper for per-field configuration values with source metadata.
std::vector< std::string > source_details
bool has_value() const
Checks whether this field has a value set.
ConfigPODField(std::nullopt_t)
Constructs an empty ConfigPODField from std::nullopt.
const T & operator*() const
Accesses the stored value.
std::string canonical_name
ConfigPODField(T val, std::string source_key, std::string canonical_name, std::string source_info, std::vector< std::string > source_details)
Constructs a ConfigPODField with a value, full source metadata, and per-entry source location.
ConfigPODField(T val)
Constructs a ConfigPODField with a value and no source metadata.
ConfigPODField(T val, std::string source_key, std::string canonical_name)
Constructs a ConfigPODField with a value and full source metadata.