bsl::swap

Swap the values of the specified lhs and rhs queues.

Synopsis

Declared in <bslstl_queue.h>

template<
    class VALUE,
    class CONTAINER>
void
swap(
    queue<VALUE, CONTAINER>& lhs,
    queue<VALUE, CONTAINER>& rhs) noexcept(false);

Description

Swap the value of the specified lhs queue with the value of the specified rhs queue.

Parameters

NameDescription
lhsfirst queue to exchange
rhssecond queue to exchange