unary_negate class template — Logical negation of a unary predicate
template <typename P> class unary_negate : public unary_function<typename P::argument_type,bool> { public: explicit unary_negate(const P& predicate); bool operator( )(const typename P::argument_type& x) const; };
The unary_negate
class
template is a binary functional that returns the logical negation of
another unary functional—that is, operator(
)
returns !predicate(x)
. The simplest way to use
unary_negate
is to use the
not1
function template.