[#bsl-queue-0a5-2constructor-09d] = xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::queue :relfileprefix: ../../ :mrdocs: Create a queue from `container` using `basicAllocator`. == Synopsis Declared in `<bslstl_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> queue( CONTAINER const& container, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- == Description Create a queue having the same sequence of values as the specified `container`. The queue object uses the specified `basicAllocator` to obtain memory. Note that the `ALLOCATOR` parameter type has to be convertible to the allocator of the `CONTAINER` parameter type, `CONTAINER::allocator_type`; otherwise, this constructor is disabled. == Parameters [cols="1,4"] |=== | Name| Description | *container* | container whose contents initialize this queue | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#