Skip to content

Commit c4c6adc

Browse files
committed
P3778R0 Fix for type_order template definition
1 parent 784cc65 commit c4c6adc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

source/support.tex

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5738,16 +5738,17 @@
57385738

57395739
\indexlibraryglobal{type_order}%
57405740
\begin{itemdecl}
5741-
template<class T, class U>
5742-
struct type_order;
5741+
template<class T, class U> struct type_order {
5742+
static constexpr strong_ordering value = @\exposid{TYPE-ORDER}@(T, U);
5743+
5744+
using value_type = strong_ordering;
5745+
5746+
constexpr operator value_type() const noexcept { return value; }
5747+
constexpr value_type operator()() const noexcept { return value; }
5748+
};
57435749
\end{itemdecl}
57445750

57455751
\begin{itemdescr}
5746-
\pnum
5747-
The name \tcode{type_order} denotes a \oldconcept{BinaryTypeTrait}\iref{meta.rqmts}
5748-
with a base characteristic of
5749-
\tcode{inte\-gral_constant<strong_ordering, \exposid{TYPE-ORDER}(T, U)>}.
5750-
57515752
\pnum
57525753
\recommended
57535754
The order should be lexicographical on parameter-type-lists and template argument lists.

0 commit comments

Comments
 (0)