From Jason Turner

[indirect.comp.with.t]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpibufugk3/{from.md → to.md} +21 -0
tmp/tmpibufugk3/{from.md → to.md} RENAMED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Comparison with `T` <a id="indirect.comp.with.t">[[indirect.comp.with.t]]</a>
2
+
3
+ ``` cpp
4
+ template<class U>
5
+ constexpr bool operator==(const indirect& lhs, const U& rhs) noexcept(noexcept(*lhs == rhs));
6
+ ```
7
+
8
+ *Mandates:* The expression `*lhs == rhs` is well-formed and its result
9
+ is convertible to `bool`.
10
+
11
+ *Returns:* If `lhs` is valueless, `false`; otherwise `*lhs == rhs`.
12
+
13
+ ``` cpp
14
+ template<class U>
15
+ constexpr synth-three-way-result<T, U>
16
+ operator<=>(const indirect& lhs, const U& rhs);
17
+ ```
18
+
19
+ *Returns:* If `lhs` is valueless, `strong_ordering::less`; otherwise
20
+ *`synth-three-way`*`(*lhs, rhs)`.
21
+