AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::csv::Scalar Concept Reference

Type of a CSV field value: string, boolean, integer, floating point number, anch::UUID (with ANCH_UUID ), anch::date::DateTime , anch::date::Date and anch::date::Time (RFC 3339, with ANCH_DATE ). More...

#include <mapper.hpp>

Concept definition

template<typename V>
concept Scalar = std::same_as<V, std::string> || std::same_as<V, bool>
|| (std::integral<V> && !std::same_as<V, char> && !std::same_as<V, wchar_t> && !std::same_as<V, char8_t>
&& !std::same_as<V, char16_t> && !std::same_as<V, char32_t>)
|| std::floating_point<V>
|| std::same_as<V, anch::UUID>
|| std::same_as<V, anch::date::DateTime> || std::same_as<V, anch::date::Date> || std::same_as<V, anch::date::Time>
Type of a CSV field value: string, boolean, integer, floating point number, anch::UUID (with ANCH_UUI...
Definition mapper.hpp:60

Detailed Description

Type of a CSV field value: string, boolean, integer, floating point number, anch::UUID (with ANCH_UUID ), anch::date::DateTime , anch::date::Date and anch::date::Time (RFC 3339, with ANCH_DATE ).

Fields hold such a value or a std::optional of it (an empty field is an absent value). Objects are flat: nested objects and collections are refused at compile time.

Template Parameters
Vthe value type
Since
0.3