|
7116 | 7116 | template<class T, class D>
|
7117 | 7117 | bool operator>=(nullptr_t, const unique_ptr<T, D>& y);
|
7118 | 7118 | template<class T, class D>
|
7119 |
| - requires @\libconcept{three_way_comparable_with}@<typename unique_ptr<T, D>::pointer, nullptr_t> |
7120 |
| - compare_three_way_result_t<typename unique_ptr<T, D>::pointer, nullptr_t> |
| 7119 | + requires @\libconcept{three_way_comparable}@<typename unique_ptr<T, D>::pointer> |
| 7120 | + compare_three_way_result_t<typename unique_ptr<T, D>::pointer> |
7121 | 7121 | operator<=>(const unique_ptr<T, D>& x, nullptr_t);
|
7122 | 7122 |
|
7123 | 7123 | template<class E, class T, class Y, class D>
|
|
9617 | 9617 | \indexlibrarymember{operator<=>}{unique_ptr}%
|
9618 | 9618 | \begin{itemdecl}
|
9619 | 9619 | template<class T, class D>
|
9620 |
| - requires @\libconcept{three_way_comparable_with}@<typename unique_ptr<T, D>::pointer, nullptr_t> |
9621 |
| - compare_three_way_result_t<typename unique_ptr<T, D>::pointer, nullptr_t> |
| 9620 | + requires @\libconcept{three_way_comparable}@<typename unique_ptr<T, D>::pointer> |
| 9621 | + compare_three_way_result_t<typename unique_ptr<T, D>::pointer> |
9622 | 9622 | operator<=>(const unique_ptr<T, D>& x, nullptr_t);
|
9623 | 9623 | \end{itemdecl}
|
9624 | 9624 |
|
9625 | 9625 | \begin{itemdescr}
|
9626 | 9626 | \pnum
|
9627 | 9627 | \returns
|
9628 |
| -\tcode{compare_three_way()(x.get(), nullptr)}. |
| 9628 | +\begin{codeblock} |
| 9629 | +compare_three_way()(x.get(), static_cast<typename unique_ptr<T, D>::pointer>(nullptr)). |
| 9630 | +\end{codeblock} |
9629 | 9631 | \end{itemdescr}
|
9630 | 9632 |
|
9631 | 9633 | \rSec3[unique.ptr.io]{I/O}
|
|
0 commit comments