[#bsl-vector-086-assign-0f]
= xref:bsl.adoc[bsl]::xref:bsl/vector-086.adoc[vector&lt;VALUE&lowbar;TYPE*, ALLOCATOR&gt;]::assign
:relfileprefix: ../../
:mrdocs:

Assign a new value to this vector&period;

== Synopses

Declared in `&lt;bslstl&lowbar;vector&period;h&gt;`

Assign a new value to this vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/vector-086/assign-03.adoc[assign](std::initializer&lowbar;list&lt;VALUE&lowbar;TYPE*&gt; values);
----

[.small]#xref:bsl/vector-086/assign-03.adoc[_» more&period;&period;&period;_]#

Assign a new value to this vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/vector-086/assign-00.adoc[assign](
    xref:bsl/vector-086/size_type.adoc[size&lowbar;type] numElements,
    VALUE&lowbar;TYPE* value);
----

[.small]#xref:bsl/vector-086/assign-00.adoc[_» more&period;&period;&period;_]#

Assign a new value to this vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
void
xref:bsl/vector-086/assign-09.adoc[assign](
    INPUT&lowbar;ITER first,
    INPUT&lowbar;ITER last);
----

[.small]#xref:bsl/vector-086/assign-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *values*
| initializer list of elements
| *numElements*
| number of elements to insert or assign
| *value*
| element value
| *first*
| beginning of the range (inclusive)
| *last*
| end of the range (exclusive)
|===


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