Swap the values of the specified lhs and rhs queues.
Declared in <bslstl_queue.h>
template<
class VALUE,
class CONTAINER>
void
swap(
queue<VALUE, CONTAINER>& lhs,
queue<VALUE, CONTAINER>& rhs) noexcept(false);
Swap the value of the specified lhs queue with the value of the specified rhs queue.
| Name | Description |
|---|---|
| lhs | first queue to exchange |
| rhs | second queue to exchange |