AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::val::IsScalar< T > Struct Template Reference

Scalar type: value type checked as a whole, without fields (it is not described by anch::Mapping ). More...

#include <constraints.hpp>

Inheritance diagram for anch::val::IsScalar< T >:
Collaboration diagram for anch::val::IsScalar< T >:

Detailed Description

template<typename T>
struct anch::val::IsScalar< T >

Scalar type: value type checked as a whole, without fields (it is not described by anch::Mapping ).

Numbers, enumerations, strings, anch::UUID , anch::date::DateTime , anch::date::Date , anch::date::Time and std::chrono time points and durations are scalars. Specialize it for other value types (a class mapped as a string by a format, ...): a validation refuses at compile time classes which are neither scalars nor described, as a description which is not visible would be silently skipped.

Template Parameters
Tthe type
Since
0.3

The documentation for this struct was generated from the following file: