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

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

#include <crunch_field.hpp>

Concept definition

template<typename T>
concept Crunch::messages::HasValidateNoId = requires(const T& t) {
{ t.Validate() } -> std::same_as<std::optional<Error>>;
}
Concept to detect if a type has a parameterless Validate() method.
Definition: crunch_field.hpp:218

Detailed Description

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