Name
not1 function template — Returns a unary_negate object
Synopsis
template <typename Predicate>
unary_negate<Predicate> not1(const Predicate& pred);
The not1
function template
is a convenient way to construct a unary_negate
function object that performs
the logical negation of pred
. See
Example 13-11 earlier in
this section.
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.