16 Library introduction [library]

16.4 Method of description [description]

16.4.2 Other conventions [conventions]

16.4.2.4 Operators [operators]

In this library, whenever a declaration is provided for an operator!=, operator>, operator<=, or operator>= for a type T, its requirements and semantics are as follows, unless explicitly specified otherwise.
bool operator!=(const T& x, const T& y);
Requires: Type T is Cpp17EqualityComparable ([tab:equalitycomparable]Table *tab:equalitycomparable).
Returns: !(x == y).
bool operator>(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable ([tab:lessthancomparable]Table *tab:lessthancomparable).
Returns: y < x.
bool operator<=(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable ([tab:lessthancomparable]Table *tab:lessthancomparable).
Returns: !(y < x).
bool operator>=(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable ([tab:lessthancomparable]Table *tab:lessthancomparable).
Returns: !(x < y).