Utility Operators
Operators for the C++ Standard Template Library
#include <utility>
template <class T> bool operator!= (const T&, const T&); template <class T> bool operator> (const T&, const T&); template <class T> bool operator<= (const T&, const T&); template <class T> bool operator>= (const T&, const T&);
To avoid redundant definitions of operator!= out of operator== and of operators >, <=, and >= out of operator<, the library provides these definitions:
operator!= returns !(x==y), operator> returns y<x, operator<= returns !(y<x), and operator>= returns !(x<y).