Crunch
A Message Definition Language for Getting Things Right
Loading...
Searching...
No Matches
Crunch::NotEqualTo< Threshold > Struct Template Reference

Validates that a value does not equal a compile-time threshold. More...

#include <crunch_validators.hpp>

Static Public Member Functions

template<typename T >
requires (std::floating_point<T> || std::integral<T> || std::is_enum_v<T>) && (!std::is_same_v<T, bool>)
static constexpr auto Check (T value, FieldId field_id) noexcept -> std::optional< Error >
 

Detailed Description

template<auto Threshold>
struct Crunch::NotEqualTo< Threshold >

Validates that a value does not equal a compile-time threshold.


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