tmp/tmpxhk9mscs/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
##### Utility <a id="func.wrap.move.util">[[func.wrap.move.util]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
void swap(move_only_function& other) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Exchanges the target objects of `*this` and `other`.
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
friend void swap(move_only_function& f1, move_only_function& f2) noexcept;
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
*Effects:* Equivalent to `f1.swap(f2)`.
|
| 14 |
+
|
| 15 |
+
``` cpp
|
| 16 |
+
friend bool operator==(const move_only_function& f, nullptr_t) noexcept;
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
*Returns:* `true` if `f` has no target object, otherwise `false`.
|
| 20 |
+
|