AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::val::MinItems Struct Reference

Minimum number of items constraint ( minItems ). More...

#include <constraints.hpp>

Collaboration diagram for anch::val::MinItems:

Public Member Functions

template<anch::val::Collection V>
bool check (const V &items, std::string &message) const

Public Attributes

std::size_t value

Detailed Description

Minimum number of items constraint ( minItems ).

Author
Vincent Lachenal
Since
0.2

Member Function Documentation

◆ check()

template<anch::val::Collection V>
bool anch::val::MinItems::check ( const V & items,
std::string & message ) const

Check value

Template Parameters
Vthe value type
Parameters
itemsthe value
messagethe error message (set when value is invalid)
Returns
true when value is valid
Here is the call graph for this function:

Member Data Documentation

◆ value

std::size_t anch::val::MinItems::value

Minimum number of items


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