tmp/tmpnn3dln3i/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,13 @@
|
|
| 1 |
-
####
|
| 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 |
-
*
|
| 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 |
|
|
|
|
| 1 |
+
#### Specialized algorithms <a id="array.special">[[array.special]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class T, size_t N>
|
| 5 |
+
constexpr void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Constraints:* `N == 0` or `is_swappable_v<T>` is `true`.
|
|
|
|
| 9 |
|
| 10 |
*Effects:* As if by `x.swap(y)`.
|
| 11 |
|
| 12 |
*Complexity:* Linear in `N`.
|
| 13 |
|