Exchange the container and comparator of a with those of b.
Declared in <bslstl_priorityqueue.h>
template<
class VALUE,
class CONTAINER,
class COMPARATOR>
void
swap(
priority_queue<VALUE, CONTAINER, COMPARATOR>& a,
priority_queue<VALUE, CONTAINER, COMPARATOR>& b) noexcept(false);
Exchange the container and comparator of the specified a object with the container and comparator of the specified b object.
| Name | Description |
|---|---|
| a | first priority queue to exchange |
| b | second priority queue to exchange |