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

Validates that a container has at most N elements. More...

#include <crunch_validators.hpp>

Static Public Member Functions

template<typename T >
requires requires(const T& t) { std::size(t); }
static constexpr auto Check (const T &value, FieldId field_id) noexcept -> std::optional< Error >
 

Detailed Description

template<std::size_t N>
struct Crunch::LengthAtMost< N >

Validates that a container has at most N elements.


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