NoneMatch Filter¶
-
template<typename T, auto Predicate>
struct NoneMatch¶ Filter that accepts only if no element matches a predicate.
This filter applies a compile-time predicate to elements in the collection and propagates only when none of the elements satisfy the predicate.
- Since
v0.1.0
// Example: Accept vectors with no zero elements auto is_zero = [](int x) { return x == 0; }; Signal<std::vector<int>, 10, NoneMatch<std::vector<int>, is_zero>> data({});Warning
Only supports
std::arrayorstd::vectortypes.Predicatemust be callable with element type and returnbool.
- Template Parameters:¶
- typename T¶
Collection type (
std::arrayorstd::vector).- auto Predicate¶
Compile-time predicate function for elements.
See Also¶
Collection Filters - Overview