[#bsl-optional-072-operator_assign-09]
= xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Reset this object to be disengaged and return a reference providing modifiable access to this object&period; This assignment operator can be called in constant expressions only when `t&lowbar;TYPE` is not allocator&hyphen;aware&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:bsl/optional-072.adoc[optional&lt;t&lowbar;TYPE&gt;]&
operator&equals;(xref:bsl/nullopt_t.adoc[bsl::nullopt&lowbar;t]) noexcept;
----


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