[#beman-optional-optional-06-2constructor-004] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional<T&>]::optional :relfileprefix: ../../../ :mrdocs: Constructs an optional from a U, but deletes the constructor if == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> requires (std::is_constructible_v<T&, U> && !(std::is_same_v<std::remove_cvref_t<U>, in_place_t>) && !(std::is_same_v<std::remove_cvref_t<U>, optional>) && detail::reference_constructs_from_temporary_v<T&, U>) constexpr optional(U&& u) = delete; ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#