tmp/tmp2sayaw5q/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Relational operators <a id="indirect.relops">[[indirect.relops]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template<class U, class AA>
|
| 5 |
+
constexpr bool operator==(const indirect& lhs, const indirect<U, AA>& rhs)
|
| 6 |
+
noexcept(noexcept(*lhs == *rhs));
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
*Mandates:* The expression `*lhs == *rhs` is well-formed and its result
|
| 10 |
+
is convertible to `bool`.
|
| 11 |
+
|
| 12 |
+
*Returns:* If `lhs` is valueless or `rhs` is valueless,
|
| 13 |
+
`lhs.valueless_after_move() == rhs.valueless_after_move()`; otherwise
|
| 14 |
+
`*lhs == *rhs`.
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
template<class U, class AA>
|
| 18 |
+
constexpr synth-three-way-result<T, U>
|
| 19 |
+
operator<=>(const indirect& lhs, const indirect<U, AA>& rhs);
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
*Returns:* If `lhs` is valueless or `rhs` is valueless,
|
| 23 |
+
`!lhs.valueless_after_move() <=> !rhs.valueless_after_move()`; otherwise
|
| 24 |
+
*`synth-three-way`*`(*lhs, *rhs)`.
|
| 25 |
+
|