bsl::queue::queue

Create a queue by moving from the specified container.

Synopsis

Declared in <bslstl_queue.h>

queue(BloombergLP::bslmf::MovableRef<queue> container);

Description

Create a queue having the value of the specified container. The allocator associated with container (if any) is propagated for use in the new queue. container is left in valid but unspecified state.

Parameters

NameDescription
containerqueue to move from