[#beman-optional-optional-06-2constructor-0a3d] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional<T&>]::optional :relfileprefix: ../../../ :mrdocs: Copy constructor. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr optional(xref:beman/optional/optional-06.adoc[optional] const& rhs) noexcept = default; ---- == Description Constructs an empty optional if the rhs is empty, otherwise constructs the stored value from the rhs. == Parameters [cols=2] |=== | Name | Description | *rhs* | The object to copy construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#