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