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

Copy&hyphen;assign from the specified `rhs`&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;(xref:bsl/deque-0c.adoc[deque] const& rhs);
----

== Description

Assign to this object the value of the specified `rhs` object, propagate to this object the allocator of `rhs` if the `ALLOCATOR` type has trait `propagate&lowbar;on&lowbar;container&lowbar;copy&lowbar;assignment`, and return a reference providing modifiable access to this object&period; If an exception is thrown, `&ast;this` is left in a valid but unspecified state&period; This method requires that the (template parameter) `VALUE&lowbar;TYPE` be `copy&hyphen;assignable` and `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
| *rhs*
| deque to copy&hyphen;assign from
|===


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