tmp/tmpwn20csc6/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class T, class Container>
|
| 5 |
void swap(queue<T, Container>& x, queue<T, Container>& y) noexcept(noexcept(x.swap(y)));
|
| 6 |
```
|
| 7 |
|
| 8 |
-
*
|
| 9 |
-
unless `is_swappable_v<Container>` is `true`.
|
| 10 |
|
| 11 |
*Effects:* As if by `x.swap(y)`.
|
| 12 |
|
|
|
|
| 1 |
+
#### Specialized algorithms <a id="queue.special">[[queue.special]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class T, class Container>
|
| 5 |
void swap(queue<T, Container>& x, queue<T, Container>& y) noexcept(noexcept(x.swap(y)));
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Constraints:* `is_swappable_v<Container>` is `true`.
|
|
|
|
| 9 |
|
| 10 |
*Effects:* As if by `x.swap(y)`.
|
| 11 |
|