[#beman-optional-optional-03-operator_assign-06] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::operator= :relfileprefix: ../../../ :mrdocs: Copy assigns the value from `rhs` if it has one. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:beman/optional/optional-03.adoc[optional]& operator=(xref:beman/optional/optional-03.adoc[optional] const& other) requires std::is_copy_constructible_v<T> && std::is_copy_assignable_v<T> && std::is_trivially_copy_constructible_v<T> && std::is_trivially_copy_assignable_v<T> = default; ---- == Return Value optional& == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#