Nullopt assignment operator.
<beman/optional/optional.hpp>
constexpr
optional<T&>&
operator=(nullopt_t value) noexcept;
Destroys the current value if there is one, and leaves the optional in an empty state.
Name | Description |
---|---|
value | The object to assign from |