tmp/tmptr0ps5io/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
#### `priority_queue` specialized algorithms <a id="priqueue.special">[[priqueue.special]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template <class T, class Container, 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 |
|
|
|
|
| 1 |
#### `priority_queue` 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 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 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 |
|