File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 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
57535754The order should be lexicographical on parameter-type-lists and template argument lists.
You can’t perform that action at this time.
0 commit comments