binary_negate<AdaptableBinaryPredicate>

Categories: functors, adaptors

Component type: type

Description

Binary_negate is a function object adaptor: it is an
Adaptable Binary Predicate that represents the logical negation
of some other Adaptable Binary Predicate. That is: if f is an
object of class binary_negate<AdaptableBinaryPredicate>, then
there exists an object pred of class AdaptableBinaryPredicate
such that f(x,y) always returns the same value as !pred(x,y).
There is rarely any reason to construct a binary_negate
directly; it is almost always easier to use the helper function not2.