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

Name

Description

lhs

first queue to exchange

rhs

second queue to exchange

Created with MrDocs