Crunch
A Message Definition Language for Getting Things Right
Loading...
Searching...
No Matches
Crunch::messages::IsPresenceValidator Concept Reference

Concept for a Presence Validator. More...

#include <crunch_field.hpp>

Concept definition

template<typename T>
concept Crunch::messages::IsPresenceValidator = requires(bool set, FieldId id) {
{ T::check_presence(set, id) } -> std::same_as<std::optional<Error>>;
}
Concept for a Presence Validator.
Definition: crunch_field.hpp:35
int32_t FieldId
Unique identifier for a field within a Crunch message.
Definition: crunch_types.hpp:11

Detailed Description

Concept for a Presence Validator.