From Jason Turner

[refwrap.comparisons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp86w7b84h/{from.md → to.md} +57 -0
tmp/tmp86w7b84h/{from.md → to.md} RENAMED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Comparisons <a id="refwrap.comparisons">[[refwrap.comparisons]]</a>
2
+
3
+ ``` cpp
4
+ friend constexpr bool operator==(reference_wrapper x, reference_wrapper y);
5
+ ```
6
+
7
+ *Constraints:* The expression `x.get() == y.get()` is well-formed and
8
+ its result is convertible to `bool`.
9
+
10
+ *Returns:* `x.get() == y.get()`.
11
+
12
+ ``` cpp
13
+ friend constexpr bool operator==(reference_wrapper x, const T& y);
14
+ ```
15
+
16
+ *Constraints:* The expression `x.get() == y` is well-formed and its
17
+ result is convertible to `bool`.
18
+
19
+ *Returns:* `x.get() == y`.
20
+
21
+ ``` cpp
22
+ friend constexpr bool operator==(reference_wrapper x, reference_wrapper<const T> y);
23
+ ```
24
+
25
+ *Constraints:* `is_const_v<T>` is `false` and the expression
26
+ `x.get() == y.get()` is well-formed and its result is convertible to
27
+ `bool`.
28
+
29
+ *Returns:* `x.get() == y.get()`.
30
+
31
+ ``` cpp
32
+ friend constexpr auto operator<=>(reference_wrapper x, reference_wrapper y);
33
+ ```
34
+
35
+ *Constraints:* The expression *`synth-three-way`*`(x.get(), y.get())` is
36
+ well-formed.
37
+
38
+ *Returns:* *`synth-three-way`*`(x.get(), y.get())`.
39
+
40
+ ``` cpp
41
+ friend constexpr auto operator<=>(reference_wrapper x, const T& y);
42
+ ```
43
+
44
+ *Constraints:* The expression *`synth-three-way`*`(x.get(), y)` is
45
+ well-formed.
46
+
47
+ *Returns:* *`synth-three-way`*`(x.get(), y)`.
48
+
49
+ ``` cpp
50
+ friend constexpr auto operator<=>(reference_wrapper x, reference_wrapper<const T> y);
51
+ ```
52
+
53
+ *Constraints:* `is_const_v<T>` is `false`. The expression
54
+ *`synth-three-way`*`(x.get(), y.get())` is well-formed.
55
+
56
+ *Returns:* *`synth-three-way`*`(x.get(), y.get())`.
57
+