[#beman-optional-optional-06-operator_assign-04]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional&lt;T&&gt;]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Copy assignment operator&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-06.adoc[optional]&
operator&equals;(xref:beman/optional/optional-06.adoc[optional] const& rhs) noexcept = default;
----

== Return Value

optional&amp;

== Parameters

[cols=2]
|===
| Name
| Description
| *rhs*
| 
|===


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