Exchange the container and comparator of the specified a object with the container and comparator of the specified b object.

Synopsis

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);

Created with MrDocs