[#absl-chunked_queue-2constructor-0ad]
= xref:absl.adoc[absl]::xref:absl/chunked_queue.adoc[chunked&lowbar;queue]::chunked&lowbar;queue
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;container&sol;chunked&lowbar;queue&period;h&gt;`

Constructs an empty queue&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-070.adoc[chunked&lowbar;queue]();
----

[.small]#xref:absl/chunked_queue/2constructor-070.adoc[_» more&period;&period;&period;_]#

Copy constructor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-0b.adoc[chunked&lowbar;queue](xref:absl/chunked_queue.adoc[chunked&lowbar;queue] const& other);
----

[.small]#xref:absl/chunked_queue/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Move constructor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-05.adoc[chunked&lowbar;queue](xref:absl/chunked_queue.adoc[chunked&lowbar;queue]&& other) noexcept;
----

[.small]#xref:absl/chunked_queue/2constructor-05.adoc[_» more&period;&period;&period;_]#

Constructs an empty queue with a custom allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/chunked_queue/2constructor-0a6.adoc[chunked&lowbar;queue](xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/chunked_queue/2constructor-0a6.adoc[_» more&period;&period;&period;_]#

Constructs a queue with `count` default&hyphen;inserted elements&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/chunked_queue/2constructor-04.adoc[chunked&lowbar;queue](
    xref:absl/chunked_queue/size_type.adoc[size&lowbar;type] count,
    xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/chunked_queue/2constructor-04.adoc[_» more&period;&period;&period;_]#

Constructs a queue with the contents of the initializer list `list`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-02.adoc[chunked&lowbar;queue](
    std::initializer&lowbar;list&lt;T&gt; list,
    xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/chunked_queue/2constructor-02.adoc[_» more&period;&period;&period;_]#

Copy constructor with specific allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-08.adoc[chunked&lowbar;queue](
    xref:absl/chunked_queue.adoc[chunked&lowbar;queue] const& other,
    xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/chunked_queue/2constructor-08.adoc[_» more&period;&period;&period;_]#

Constructs a queue with `count` copies of `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/chunked_queue/2constructor-07e.adoc[chunked&lowbar;queue](
    xref:absl/chunked_queue/size_type.adoc[size&lowbar;type] count,
    T const& value,
    xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/chunked_queue/2constructor-07e.adoc[_» more&period;&period;&period;_]#

Constructs a queue with the contents of the range &lsqb;first, last)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Iter&gt;
requires base&lowbar;internal&colon;&colon;IsAtLeastInputIterator&lt;Iter&gt;&colon;&colon;value
xref:absl/chunked_queue/2constructor-09.adoc[chunked&lowbar;queue](
    Iter first,
    Iter last,
    xref:absl/chunked_queue/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/chunked_queue/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The queue to copy from&period;
| *alloc*
| The allocator to use&period;
| *count*
| The number of elements to create&period;
| *list*
| The initializer list to copy elements from&period;
| *value*
| The value to copy into each element&period;
| *first*
| An iterator to the beginning of the range&period;
| *last*
| An iterator past the end of the range&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
