cpp/utility/functional/binary negate

is a wrapper function object returning the complement of the binary predicate it holds.

The binary predicate type must define two member types, and, that are convertible to the predicate's parameter types. The function objects obtained from std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, std, or from a call to std have these types defined, as are function objects derived from the deprecated std.

objects are easily constructed with helper function std.

Member functions
{{member|{{small|std::binary_negate::}}binary_negate|2= {{dcl begin}} {{dcl rev begin}} {{dcl|until=c++14| explicit binary_negate( Predicate const& pred ); }} {{dcl|since=c++14| explicit constexpr binary_negate( Predicate const& pred ); }} {{dcl rev end}} {{dcl end}}

Constructs a {{tt|std::binary_negate}} function object with the stored predicate {{c|pred}}.

Parameters
}}

{{member|{{small|std::binary_negate::}}operator|2= {{dcl begin}} {{dcl rev begin}} {{dcl|until=c++14| bool operator( first_argument_type const& x,                second_argument_type const& y ) const; }} {{dcl|since=c++14| constexpr bool operator( first_argument_type const& x,                          second_argument_type const& y ) const; }} {{dcl rev end}} {{dcl end}}

Returns the logical complement of the result of calling {{c|pred(x, y)}}.

Return value
The logical complement of the result of calling. }}