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