Name
binary_negate class template — Logical negation of a binary predicate
Synopsis
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.
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.