[#beman-optional-optional-03-2constructor-05] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::optional :relfileprefix: ../../../ :mrdocs: Move constructs the value from `rhs` if it has one. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr optional(xref:beman/optional/optional-03.adoc[optional]&& other) requires std::is_move_constructible_v<T> && std::is_trivially_move_constructible_v<T> = default; ---- == Description Defaulted if T is trivially move constructible. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#