bsl::priority_queue::swap

Efficiently exchange the value of this object with the value of the specified other object. In effect, performs using bsl::swap; swap(c, other.c);.

Synopsis

Declared in <bslstl_priorityqueue.h>

void
swap(priority_queue& other) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless bsl::is_nothrow_swappable<CONTAINER>::value && bsl::is_nothrow_swappable<COMPARATOR>::value.