[#beman-optional-optional-03-operator_assign-0f]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Resets the optional to an empty state&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

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

== Return Value

Reference to the current object

== Parameters

[cols="1,4"]
|===
|Name|Description

| *value*
| The object to assign from
|===


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