u,
forwarding it if necessary.
<beman/optional/optional.hpp>
template<class U = T>
constexpr
explicit(!std::is_convertible_v<U, T>)
optional(U&& u)
requires detail::enable_forward_value<T, U>;
If u
is convertible to T,
this is an explicit constructor.
Constructs the stored value with u
.
Name | Description |
---|---|
u | The object to move construct from |