binary_negate class template — Logical negation of a binary predicate
template <typename P> class binary_negate : public binary_function<typename P::first_argument_type, typename P::second_argument_type, bool> { public: explicit binary_negate(const P& predicate); bool operator( )(const typename P::first_argument_type& x, const typename P::second_argument_type& y) const; };
The binary_negate
class
template is a binary functional that returns the logical negation of
another binary functional—that is, operator( )
returns !predicate(x
, y)
. The simplest way to use binary_negate
is to use the not2
function template.