|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <functional> | ||
template<> class not_equal_to<void>; | (since C++14) | |
std::not_equal_to<void> is a specialization ofstd::not_equal_to with parameter and return type deduced.
Contents |
| Nested type | Definition |
is_transparent | unspecified |
operator() | tests if the two arguments do not compare equal (public member function) |
template<class T,class U> constexprauto operator()( T&& lhs, U&& rhs)const | ||
Returns the result of non-equality comparison betweenlhs andrhs.
| lhs, rhs | - | values to compare |
std::forward<T>(lhs)!=std::forward<U>(rhs).
#include <functional> int main(){constexprint p=0, q=8;std::not_equal_to<> not_equal{}; static_assert(!not_equal(p, p)); static_assert(not_equal(p, q));}