tmp/tmp4vfbp4x2/{from.md → to.md}
RENAMED
|
@@ -1,15 +1,13 @@
|
|
| 1 |
#### `array::swap` <a id="array.swap">[[array.swap]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void swap(array& y) noexcept(
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* `swap_ranges(begin(), end(), y.begin())`
|
| 8 |
|
| 9 |
-
*
|
| 10 |
-
exception
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
takes linear time, may exit via an exception, and does not cause
|
| 14 |
-
iterators to become associated with the other container.
|
| 15 |
|
|
|
|
| 1 |
#### `array::swap` <a id="array.swap">[[array.swap]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
void swap(array& y) noexcept(is_nothrow_swappable_v<T>);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Equivalent to `swap_ranges(begin(), end(), y.begin())`.
|
| 8 |
|
| 9 |
+
[*Note 1*: Unlike the `swap` function for other containers,
|
| 10 |
+
`array::swap` takes linear time, may exit via an exception, and does not
|
| 11 |
+
cause iterators to become associated with the other
|
| 12 |
+
container. — *end note*]
|
|
|
|
|
|
|
| 13 |
|