[#bsl-deque-0c-assign-0e]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::assign
:relfileprefix: ../../
:mrdocs:

`assign` overloads

== Synopses

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

Assign to this deque the elements of `values`&period;


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

[.small]#xref:bsl/deque-0c/assign-0d.adoc[_» more&period;&period;&period;_]#

Assign `numElements` copies of `value` to this deque&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/deque-0c/assign-04.adoc[assign](
    xref:bsl/deque-0c/size_type.adoc[size&lowbar;type] numElements,
    VALUE&lowbar;TYPE const& value);
----

[.small]#xref:bsl/deque-0c/assign-04.adoc[_» more&period;&period;&period;_]#

Assign to this deque the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
void
xref:bsl/deque-0c/assign-06.adoc[assign](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last);
----

[.small]#xref:bsl/deque-0c/assign-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *values*
| initializer list of elements to assign
| *numElements*
| number of elements to assign
| *value*
| value to copy&hyphen;assign into each element
| *first*
| beginning of the range to assign
| *last*
| end of the range to assign
|===


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