[#BloombergLP-bslstl-Optional_Base-05-operator_assign-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign to this object the value of the specified `rhs` object, and return a non&hyphen;`const` reference to this object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base&lt;t&lowbar;TYPE, t&lowbar;USES&lowbar;BSLMA&lowbar;ALLOC&gt;]&
operator&equals;(xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base] const& rhs);
----

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| right&hyphen;hand operand
|===


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