[#bsl-deque-0c-operator_assign-0d]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::operator&equals;
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

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

== Description

Assign to this object the value resulting from first clearing this deque and then appending each `value&lowbar;type` object in the specified `values` initializer list&semi; return a reference providing modifiable access to this object&period; This method requires that the (template parameter) `VALUE&lowbar;TYPE` be `copy&hyphen;insertable` into this deque (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;

== Return Value

modifiable reference to this deque

== Parameters

[cols="1,4"]
|===
| Name| Description
| *values*
| initializer list of elements to assign
|===


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