[#bsl-queue-0a5-2constructor-09f] = xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::queue :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstl_queue.h>` Create an empty queue having a container of the parameterized `CONTAINER` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/queue-0a5/2constructor-0cd.adoc[queue](); ---- [.small]#xref:bsl/queue-0a5/2constructor-0cd.adoc[_» more..._]# Create a queue having the value of the specified `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/queue-0a5/2constructor-0e.adoc[queue](xref:bsl/queue-0a5.adoc[queue] const& original); ---- [.small]#xref:bsl/queue-0a5/2constructor-0e.adoc[_» more..._]# Create a queue by moving from the specified `container`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/queue-0a5/2constructor-0f0.adoc[queue](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<CONTAINER>] container); ---- [.small]#xref:bsl/queue-0a5/2constructor-0f0.adoc[_» more..._]# Create a queue by moving from the specified `container`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/queue-0a5/2constructor-06.adoc[queue](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<queue>] container); ---- [.small]#xref:bsl/queue-0a5/2constructor-06.adoc[_» more..._]# Create a queue having the specified `container` that holds elements of the parameterized `VALUE` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/queue-0a5/2constructor-09a.adoc[queue](CONTAINER const& container); ---- [.small]#xref:bsl/queue-0a5/2constructor-09a.adoc[_» more..._]# Create an empty queue that uses `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> explicit xref:bsl/queue-0a5/2constructor-01.adoc[queue](ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-01.adoc[_» more..._]# Create a queue from the iterator range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITER> xref:bsl/queue-0a5/2constructor-0fcd.adoc[queue]( INPUT_ITER first, INPUT_ITER last); ---- [.small]#xref:bsl/queue-0a5/2constructor-0fcd.adoc[_» more..._]# Create a queue from the elements of the specified `range`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_RANGE> xref:bsl/queue-0a5/2constructor-0fc5.adoc[queue]( std::from_range_t unused, t_RANGE&& range); ---- [.small]#xref:bsl/queue-0a5/2constructor-0fc5.adoc[_» more..._]# Create a queue from the specified `container` using `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> xref:bsl/queue-0a5/2constructor-054.adoc[queue]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<CONTAINER>] container, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-054.adoc[_» more..._]# Create a queue by moving from `original` using `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> xref:bsl/queue-0a5/2constructor-056.adoc[queue]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<queue>] original, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-056.adoc[_» more..._]# Create a queue from `container` using `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> xref:bsl/queue-0a5/2constructor-09d.adoc[queue]( CONTAINER const& container, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-09d.adoc[_» more..._]# Create a queue from `original` using `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> xref:bsl/queue-0a5/2constructor-0cc.adoc[queue]( xref:bsl/queue-0a5.adoc[queue] const& original, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-0cc.adoc[_» more..._]# Create a queue from `[first, last)]` using `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class INPUT_ITER, class ALLOCATOR> xref:bsl/queue-0a5/2constructor-0b.adoc[queue]( INPUT_ITER first, INPUT_ITER last, ALLOCATOR const& allocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-0b.adoc[_» more..._]# Create a queue from `range` using `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_RANGE, class t_ALLOCATOR> xref:bsl/queue-0a5/2constructor-0f5.adoc[queue]( std::from_range_t unused, t_RANGE&& range, t_ALLOCATOR const& allocator) requires bsl::uses_allocator<CONTAINER,t_ALLOCATOR>::value; ---- [.small]#xref:bsl/queue-0a5/2constructor-0f5.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *original* | queue to copy | *container* | container to move from | *basicAllocator* | allocator used to supply memory | *first* | beginning of the range of elements to insert | *last* | end of the range of elements to insert | *unused* | tag selecting the from‐range constructor overload | *range* | input range of elements to insert | *allocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#