u,
destroying the old value if there
<beman/optional/optional.hpp>
template<class U = T>
constexpr
optional<T>&
operator=(U&& u)
requires detail::enable_assign_forward<T, U>;
Assigns the stored value from u
, destroying the old value if there was one.
Name | Description |
---|---|
U |
Name | Description |
---|---|
u |