[#absl-chunked_queue-assign-06]
= xref:absl.adoc[absl]::xref:absl/chunked_queue.adoc[chunked&lowbar;queue]::assign
:relfileprefix: ../../
:mrdocs:

`assign` overloads

== Synopses

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

Replaces the contents with the elements from the initializer list `il`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/chunked_queue/assign-02.adoc[assign](std::initializer&lowbar;list&lt;T&gt; il);
----

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

Replaces the contents with `count` copies of `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/chunked_queue/assign-0c.adoc[assign](
    xref:absl/chunked_queue/size_type.adoc[size&lowbar;type] count,
    T const& value);
----

[.small]#xref:absl/chunked_queue/assign-0c.adoc[_» more&period;&period;&period;_]#

Replaces the contents with copies of those in 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
void
xref:absl/chunked_queue/assign-09.adoc[assign](
    Iter first,
    Iter last);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *il*
| The initializer list to copy elements from&period;
| *count*
| The number of elements to create&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]#
