void swap( priority_queue& other ) noexcept(/* see below */);
Exchanges the contents of the container adaptor with those of
other. Effectively calls
using std::swap; swap(c, other.c); swap(comp, other.comp);
|other||-||container adaptor to exchange the contents with|
| ||(until C++17)|
| ||(since C++17)|
Same as underlying container (typically constant).
| specializes the
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.