[#BloombergLP-bdlb-NullableValue-operator_assign-002]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign to this object by moving from the specified `rhs` optional&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullablevalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class BDE&lowbar;OTHER&lowbar;TYPE&gt;
xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue&lt;TYPE&gt;]&
operator&equals;(xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef&lowbar;Deduced&lt;bsl::optional&lt;BDE&lowbar;OTHER&lowbar;TYPE&gt;&gt;] rhs)
requires bsl&colon;&colon;is&lowbar;convertible&lt;BDE&lowbar;OTHER&lowbar;TYPE, TYPE&gt;&colon;&colon;value;
----

== Description

Assign to this object the null value if the specified `rhs` object is null, and the value of `rhs&period;value()` (of `BDE&lowbar;OTHER&lowbar;TYPE`) converted to `TYPE` otherwise&period; Return a reference providing modifiable access to this object&period; Note that this method will fail to compile if `TYPE` and &grave;BDE&lowbar;OTHER&lowbar;TYPE&apos; are not compatible&period;

== Return Value

a reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| optional value from which to move
|===


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