20 Library introduction [library]

20.4 Method of description (Informative) [description]

20.4.2 Other conventions [conventions]

20.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 EqualityComparable (Table 20).
Returns: !(x == y).
bool operator>(const T& x, const T& y);
Requires: Type T is LessThanComparable (Table 21).
Returns: y < x.
bool operator<=(const T& x, const T& y);
Requires: Type T is LessThanComparable (Table 21).
Returns: !(y < x).
bool operator>=(const T& x, const T& y);
Requires: Type T is LessThanComparable (Table 21).
Returns: !(x < y).