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

#include <constraints.hpp>

Concept definition

template<typename C, typename P>
concept FieldConstraint = std::same_as<std::remove_cvref_t<C>, anch::val::Required>
Definition constraints.hpp:1164
Definition constraints.hpp:1152
Required field constraint.
Definition constraints.hpp:523

Detailed Description

Field constraint which can be given to ObjectMapper::registerField for field of type P : anch::val::Required or value constraint which can check the value type ( std::optional and pointers are unwrapped)

Template Parameters
Cthe constraint type
Pthe field type
Since
0.2