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

Assignment operators

== Synopses

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

Assign to this object the value of the specified `rhs` object&period;


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

[.small]#xref:bsl/stack-05/operator_assign-04.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/stack-05/operator_assign-01.adoc[_» more&period;&period;&period;_]#

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| stack whose value is assigned to this object
|===


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