Assign a new value to this optional.
Declared in <bslstl_optional.h>
constexpr
optional<t_TYPE>&
operator=(bsl::nullopt_t nullopt) noexcept;
Reset this object to be disengaged and return a reference providing modifiable access to this object. This assignment operator can be called in constant expressions only when t_TYPE is not allocator-aware.
reference providing modifiable access to this object
| Name | Description |
|---|---|
| nullopt | disengaged-optional tag; value is unused |