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

Validates that a container has unique elements. More...

#include <crunch_validators.hpp>

Static Public Member Functions

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

Detailed Description

Validates that a container has unique elements.


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