Not Filter

template<typename Filter>
struct Not

Logical NOT - inverts filter result.

This filter combinator negates the result of another filter, propagating when the inner filter rejects and rejecting when the inner filter accepts.

Since

v0.1.0

// Example: Accept values NOT within tolerance
Signal<float, 10, Not<WithinTolerance<float, 1.0>>>
value(0.0);

Note

Preserves inner filter state.

Warning

  • Filter must have valid operator() for comparison.

Template Parameters:
typename Filter

Filter type to negate.

Public Functions

inline bool operator()(const auto &old_value, const auto &new_value) const

Public Members

mutable Filter filter

See Also