[#absl-chunked_queue-2constructor-0ad] = xref:absl.adoc[absl]::xref:absl/chunked_queue.adoc[chunked_queue]::chunked_queue :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/container/chunked_queue.h>` Constructs an empty queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-070.adoc[chunked_queue](); ---- [.small]#xref:absl/chunked_queue/2constructor-070.adoc[_» more..._]# Copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-0b.adoc[chunked_queue](xref:absl/chunked_queue.adoc[chunked_queue] const& other); ---- [.small]#xref:absl/chunked_queue/2constructor-0b.adoc[_» more..._]# Move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-05.adoc[chunked_queue](xref:absl/chunked_queue.adoc[chunked_queue]&& other) noexcept; ---- [.small]#xref:absl/chunked_queue/2constructor-05.adoc[_» more..._]# Constructs an empty queue with a custom allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/chunked_queue/2constructor-0a6.adoc[chunked_queue](xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/chunked_queue/2constructor-0a6.adoc[_» more..._]# Constructs a queue with `count` default‐inserted elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/chunked_queue/2constructor-04.adoc[chunked_queue]( xref:absl/chunked_queue/size_type.adoc[size_type] count, xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/chunked_queue/2constructor-04.adoc[_» more..._]# Constructs a queue with the contents of the initializer list `list`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-02.adoc[chunked_queue]( std::initializer_list<T> list, xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/chunked_queue/2constructor-02.adoc[_» more..._]# Copy constructor with specific allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-08.adoc[chunked_queue]( xref:absl/chunked_queue.adoc[chunked_queue] const& other, xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/chunked_queue/2constructor-08.adoc[_» more..._]# Constructs a queue with `count` copies of `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/chunked_queue/2constructor-07e.adoc[chunked_queue]( xref:absl/chunked_queue/size_type.adoc[size_type] count, T const& value, xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/chunked_queue/2constructor-07e.adoc[_» more..._]# Constructs a queue with the contents of the range [first, last).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Iter> requires base_internal::IsAtLeastInputIterator<Iter>::value xref:absl/chunked_queue/2constructor-09.adoc[chunked_queue]( Iter first, Iter last, xref:absl/chunked_queue/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/chunked_queue/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The queue to copy from. | *alloc* | The allocator to use. | *count* | The number of elements to create. | *list* | The initializer list to copy elements from. | *value* | The value to copy into each element. | *first* | An iterator to the beginning of the range. | *last* | An iterator past the end of the range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#