Assigns the stored value from u, destroying the old value if there

Synopsis

Declared in <beman/optional/optional.hpp>

template<class U = T>
constexpr
optional<T>&
operator=(U&& u)
requires detail::enable_assign_forward<T, U>;

Description

Assigns the stored value from u, destroying the old value if there was one.

Return Value

optional&

Template Parameters

Name

Description

U

Parameters

Name

Description

u

Created with MrDocs