Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5738,16 +5738,17 @@

\indexlibraryglobal{type_order}%
\begin{itemdecl}
template<class T, class U>
struct type_order;
template<class T, class U> struct type_order {
static constexpr strong_ordering value = @\exposid{TYPE-ORDER}@(T, U);

using value_type = strong_ordering;

constexpr operator value_type() const noexcept { return value; }
constexpr value_type operator()() const noexcept { return value; }
};
\end{itemdecl}

\begin{itemdescr}
\pnum
The name \tcode{type_order} denotes a \oldconcept{BinaryTypeTrait}\iref{meta.rqmts}
with a base characteristic of
\tcode{inte\-gral_constant<strong_ordering, \exposid{TYPE-ORDER}(T, U)>}.

\pnum
\recommended
The order should be lexicographical on parameter-type-lists and template argument lists.
Expand Down