From Jason Turner

[expected.un.swap]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp4ne6xs1y/{from.md → to.md} +19 -0
tmp/tmp4ne6xs1y/{from.md → to.md} RENAMED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Swap <a id="expected.un.swap">[[expected.un.swap]]</a>
2
+
3
+ ``` cpp
4
+ constexpr void swap(unexpected& other) noexcept(is_nothrow_swappable_v<E>);
5
+ ```
6
+
7
+ *Mandates:* `is_swappable_v<E>` is `true`.
8
+
9
+ *Effects:* Equivalent to:
10
+ `using std::swap; swap(`*`unex`*`, other.`*`unex`*`);`
11
+
12
+ ``` cpp
13
+ friend constexpr void swap(unexpected& x, unexpected& y) noexcept(noexcept(x.swap(y)));
14
+ ```
15
+
16
+ *Constraints:* `is_swappable_v<E>` is `true`.
17
+
18
+ *Effects:* Equivalent to `x.swap(y)`.
19
+