tmp/tmpy7i_2krv/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
#### `array` specialized algorithms <a id="array.special">[[array.special]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template <class T, size_t N>
|
|
|
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
|
|
|
| 8 |
|
| 9 |
-
``
|
| 10 |
-
x.swap(y);
|
| 11 |
-
```
|
| 12 |
|
| 13 |
*Complexity:* Linear in `N`.
|
| 14 |
|
|
|
|
| 1 |
#### `array` specialized algorithms <a id="array.special">[[array.special]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
template <class T, size_t N>
|
| 5 |
+
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 9 |
+
unless `N == 0` or `is_swappable_v<T>` is `true`.
|
| 10 |
|
| 11 |
+
*Effects:* As if by `x.swap(y)`.
|
|
|
|
|
|
|
| 12 |
|
| 13 |
*Complexity:* Linear in `N`.
|
| 14 |
|