[#absl-InlinedVector-assign-06]
= xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::assign
:relfileprefix: ../../
:mrdocs:

`assign` overloads

== Synopses

Declared in `&lt;absl&sol;container&sol;inlined&lowbar;vector&period;h&gt;`

Overload of `InlinedVector&colon;&colon;assign(&period;&period;&period;)` that replaces the contents of the inlined vector with copies of the elements of `list`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/InlinedVector/assign-0ed.adoc[assign](std::initializer&lowbar;list&lt;value&lowbar;type&gt; list);
----

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

Replaces the contents of the inlined vector with `n` copies of `v`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/InlinedVector/assign-094.adoc[assign](
    xref:absl/InlinedVector/size_type.adoc[size&lowbar;type] n,
    xref:absl/InlinedVector/const_reference.adoc[const&lowbar;reference] v);
----

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

Overload of `InlinedVector&colon;&colon;assign(&period;&period;&period;)` to replace the contents of the inlined vector with the range &lsqb;`first`, `last`)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename ForwardIterator,
    xref:absl/InlinedVector.adoc[EnableIfAtLeastForwardIterator&lt;ForwardIterator&gt;] = 0&gt;
void
xref:absl/InlinedVector/assign-099.adoc[assign](
    ForwardIterator first,
    ForwardIterator last);
----

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

Overload of `InlinedVector&colon;&colon;assign(&period;&period;&period;)` to replace the contents of the inlined vector with the range &lsqb;`first`, `last`)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputIterator,
    xref:absl/InlinedVector.adoc[DisableIfAtLeastForwardIterator&lt;InputIterator&gt;] = 0&gt;
void
xref:absl/InlinedVector/assign-0d.adoc[assign](
    InputIterator first,
    InputIterator last);
----

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

Overload of `InlinedVector&colon;&colon;assign(&period;&period;&period;)` to replace the contents of the inlined vector with the range &lsqb;`first`, `last`)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputIterator,
    xref:absl/InlinedVector.adoc[DisableIfAtLeastForwardIterator&lt;InputIterator&gt;] = 0&gt;
void
xref:absl/InlinedVector/assign-0e6.adoc[assign](
    InputIterator first,
    InputIterator last);
----

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

== Parameters

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