Given types
T and
U,
let
t be an lvalue of type
const remove_reference_t<T>,
u be an lvalue of type
const remove_reference_t<U>,
and
C be:
common_reference_t<const remove_reference_t<T>&, const remove_reference_t<U>&>
T and
U model
totally_ordered_with<T, U> only if
- bool(t < u) == bool(C(t) < C(u)).
- bool(t > u) == bool(C(t) > C(u)).
- bool(t <= u) == bool(C(t) <= C(u)).
- bool(t >= u) == bool(C(t) >= C(u)).
- bool(u < t) == bool(C(u) < C(t)).
- bool(u > t) == bool(C(u) > C(t)).
- bool(u <= t) == bool(C(u) <= C(t)).
- bool(u >= t) == bool(C(u) >= C(t)).