[#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 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`. [.small]#Created with https://www.mrdocs.com[MrDocs]#