[#beman-optional-optional-03-2constructor-00] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::optional :relfileprefix: ../../../ :mrdocs: Constructs the value from `u,` forwarding it if necessary. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U = T> constexpr explicit(!std::is_convertible_v<U, T>) optional(U&& u) requires detail::enable_forward_value<T, U>; ---- == Description If `u` is convertible to `T,` this is an explicit constructor. Constructs the stored value with `u`. == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#