15 Library introduction [library]

15.4 Method of description (Informative) [description]

15.4.2 Other conventions [conventions]

15.4.2.3 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 (Table 22).
Returns: !(x == y).
bool operator>(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable (Table 23).
Returns: y < x.
bool operator<=(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable (Table 23).
Returns: !(y < x).
bool operator>=(const T& x, const T& y);
Requires: Type T is Cpp17LessThanComparable (Table 23).
Returns: !(x < y).