bsl::queue::operator=

Assign to this queue by moving from the specified rhs.

Synopsis

Declared in <bslstl_queue.h>

queue<VALUE, CONTAINER>&
operator=(BloombergLP::bslmf::MovableRef<queue> rhs);

Description

Assign to this queue the value as the specified rhs and return a reference providing modifiable access to this queue. The move-assignment operator of CONTAINER is used to set the value of this queue. rhs is left in a valid but unspecified state, and if an exception is thrown, *this is left in a valid but unspecified state.

Return Value

reference providing modifiable access to this queue

Parameters

NameDescription
rhsqueue to move-assign from