Nullopt assignment operator.

Synopsis

Declared in <beman/optional/optional.hpp>

constexpr
optional<T&>&
operator=(nullopt_t rhs) noexcept;

Description

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

Return Value

optional&

Parameters

Name

Description

rhs

Tag indicating the disengaged state.

Created with MrDocs