Items constraints.
More...
#include <constraints.hpp>
|
| template<typename V, typename X> |
| void | apply (const V &items, X &context) const |
template<typename... C>
struct anch::val::Items< C >
Items constraints.
Constraints are checked on every item of a collection or every value of a map. Error path contains the item index or the map key.
- Template Parameters
-
| C | the items constraints types |
- Author
- Vincent Lachenal
- Since
- 0.2
◆ apply()
template<typename... C>
template<typename V, typename X>
Check every item
- Template Parameters
-
- Parameters
-
| items | the container |
| context | the context (the violation path contains the item index or the map key) |
◆ constraints
The documentation for this struct was generated from the following file: