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

Concept to detect if a type has a Validate(FieldId) method. More...

#include <crunch_field.hpp>

Concept definition

template<typename T>
concept Crunch::messages::HasValidateWithId = requires(const T& t, FieldId id) {
{ t.Validate(id) } -> std::same_as<std::optional<Error>>;
}
Concept to detect if a type has a Validate(FieldId) method.
Definition: crunch_field.hpp:210
int32_t FieldId
Unique identifier for a field within a Crunch message.
Definition: crunch_types.hpp:11

Detailed Description

Concept to detect if a type has a Validate(FieldId) method.