[#bsl-queue-0a5-2constructor-06] = xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::queue :relfileprefix: ../../ :mrdocs: Create a queue by moving from the specified `container`. == Synopsis Declared in `<bslstl_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- queue(xref:BloombergLP/bslmf/MovableRef.adoc[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 [cols="1,4"] |=== | Name| Description | *container* | queue to move from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#