[#bsl-stack-05-operator_assign-01]
= xref:bsl.adoc[bsl]::xref:bsl/stack-05.adoc[stack]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Move&hyphen;assign to this object the value of the specified `rhs` object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/stack-05.adoc[stack&lt;VALUE, CONTAINER&gt;]&
operator&equals;(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;stack&gt;] rhs) noexcept(false);
----

== Description

Assign to this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object&period; The contents of `rhs` are moved to this stack using the move&hyphen;assignment operator of `CONTAINER`&period; `rhs` is left in a valid but unspecified state, and if an exception is thrown, `&ast;this` is left in a valid but unspecified state&period;

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| stack to move&hyphen;assign from
|===


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