Crunch
A Message Definition Language for Getting Things Right
Loading...
Searching...
No Matches
Crunch::Positive Struct Reference

Validates that a value is non-negative (>= 0). More...

#include <crunch_validators.hpp>

Static Public Member Functions

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

Detailed Description

Validates that a value is non-negative (>= 0).


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