23 General utilities library [utilities]
To avoid redundant definitions of
operator!= out of
operator==
and operators
>,
<=, and
>= out of
operator<,
the library provides the following:
template <class T> bool operator!=(const T& x, const T& y);
Requires:
Type
T is
EqualityComparable (Table
20)
. template <class T> bool operator>(const T& x, const T& y);
Requires:
Type
T is
LessThanComparable (Table
21)
. template <class T> bool operator<=(const T& x, const T& y);
Requires:
Type
T is
LessThanComparable (Table
21)
. template <class T> bool operator>=(const T& x, const T& y);
Requires:
Type
T is
LessThanComparable (Table
21)
. In this library, whenever a declaration is provided for an
operator!=,
operator>,
operator>=, or
operator<=,
and requirements and semantics are not explicitly provided,
the requirements and semantics are as specified in this Clause
.