beman::optional::optional<T&>::operator=

Nullopt assignment operator.

Synopsis

Declared in <beman/optional/optional.hpp>
constexpr
optional<T&>&
operator=(nullopt_t value) noexcept;

Description

Destroys the current value if there is one, and leaves the optional in an empty state.

Return Value

optional&

Parameters

Name Description
value The object to assign from

Created with MrDocs