[concept.totallyordered] (original) (raw)

18 Concepts library [concepts]

18.5 Comparison concepts [concepts.compare]

18.5.4 Concept totally_­ordered [concept.totallyordered]

Given a type T, let a, b, and c be lvalues of type const remove_­reference_­t<T>.

T models totally_­ordered only if

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 modeltotally_­ordered_­with<T, U> only if