[#bsl-queue-0a5-2constructor-0cc] = xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::queue :relfileprefix: ../../ :mrdocs: Create a queue from `original` using `basicAllocator`. == Synopsis Declared in `<bslstl_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> queue( xref:bsl/queue-0a5.adoc[queue] const& original, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- == Description Create a queue having the value of the specified `original` that will use the specified `basicAllocator` to supply 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 | *original* | queue to copy | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#