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);.
other
using bsl::swap; swap(c, other.c);
Declared in <bslstl_queue.h>
<bslstl_queue.h>
void swap(queue& other) noexcept(/* see-below */);
This function is potentially-throwing unless bsl::is_nothrow_swappable<CONTAINER>::value.
bsl::is_nothrow_swappable<CONTAINER>::value