|
3883 | 3883 |
|
3884 | 3884 | // \ref{cmp.concept}, concept \tcode{ThreeWayComparable}
|
3885 | 3885 | template<class T, class Cat = partial_ordering>
|
3886 |
| - concept ThreeWayComparable = see below; |
| 3886 | + concept ThreeWayComparable = @\seebelow@; |
3887 | 3887 | template<class T, class U, class Cat = partial_ordering>
|
3888 |
| - concept ThreeWayComparableWith = see below; |
| 3888 | + concept ThreeWayComparableWith = @\seebelow@; |
3889 | 3889 |
|
3890 | 3890 | // \ref{cmp.result}, result of three-way comparison
|
3891 | 3891 | template<class T, class U = T> struct compare_three_way_result;
|
|
3982 | 3982 | static const weak_equality nonequivalent;
|
3983 | 3983 |
|
3984 | 3984 | // comparisons
|
3985 |
| - friend constexpr bool operator==(weak_equality v, unspecified) noexcept; |
| 3985 | + friend constexpr bool operator==(weak_equality v, @\unspec@) noexcept; |
3986 | 3986 | friend constexpr bool operator==(weak_equality v, weak_equality w) noexcept = default;
|
3987 | 3987 | friend constexpr weak_equality operator<=>(weak_equality v, @\unspec@) noexcept;
|
3988 | 3988 | friend constexpr weak_equality operator<=>(@\unspec@, weak_equality v) noexcept;
|
|
4579 | 4579 | template<class T, class U>
|
4580 | 4580 | concept @\placeholder{partially-ordered-with}@ = // \expos
|
4581 | 4581 | requires(const remove_reference_t<T>& t, const remove_reference_t<U>& u) {
|
4582 |
| - { t < u } -> Boolean; |
4583 |
| - { t > u } -> Boolean; |
| 4582 | + { t < u } -> Boolean; |
| 4583 | + { t > u } -> Boolean; |
4584 | 4584 | { t <= u } -> Boolean;
|
4585 | 4585 | { t >= u } -> Boolean;
|
4586 |
| - { u < t } -> Boolean; |
4587 |
| - { u > t } -> Boolean; |
| 4586 | + { u < t } -> Boolean; |
| 4587 | + { u > t } -> Boolean; |
4588 | 4588 | { u <= t } -> Boolean;
|
4589 | 4589 | { u >= t } -> Boolean;
|
4590 | 4590 | };
|
|
4763 | 4763 | \begin{itemize}
|
4764 | 4764 | \item
|
4765 | 4765 | If the expression \tcode{std::forward<T>(t) <=> std::forward<U>(u)} results in
|
4766 |
| - a call to a built-in operator \tcode{<=>} comparing pointers of type P, |
| 4766 | + a call to a built-in operator \tcode{<=>} comparing pointers of type \tcode{P}, |
4767 | 4767 | returns \tcode{strong_ordering::less}
|
4768 | 4768 | if (the converted value of) \tcode{t} precedes \tcode{u}
|
4769 | 4769 | in the implementation-defined strict total order\iref{range.cmp}
|
|
4772 | 4772 | if \tcode{u} precedes \tcode{t}, and
|
4773 | 4773 | otherwise \tcode{strong_ordering::equal}.
|
4774 | 4774 | \item
|
4775 |
| - Otherwise, equivalent to: return \tcode{std::forward<T>(t) <=> std::forward<U>(u);} |
| 4775 | + Otherwise, equivalent to: \tcode{return std::forward<T>(t) <=> std::forward<U>(u);} |
4776 | 4776 | \end{itemize}
|
4777 | 4777 | \end{itemdescr}
|
4778 | 4778 |
|
|
0 commit comments