Name
unary_negate class template — Logical negation of a unary predicate
Synopsis
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.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.