garlic::tuple_tag Class Reference

Constraint Tag that passes if the layer is a list and its first n elements pass the first n constraints. More...

#include <constraints.h>

Detailed Description

Constraint Tag that passes if the layer is a list and its first n elements pass the first n constraints.

Basically when constraint[N] passes layer.begin_list()[N]

make_constraint<tuple_tag>(sequence<Constraint>&& constraints,
bool strict = true,
bool ignore_details = false);
Parameters
constraintsordered list of constraints to match the elements in the layer.
strictif true, layer can only have as many elements as there are constraints.
ignore_detailsif true, failing constraints will not be added to the resulting ConstraintResult as details.
Returns
The resulting ConstraintResult will have one extra detail and it's name is the index of element in the tuple.

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