Assign a new value to this optional.
Synopsis
Declared in <bslstl_optional.h>
constexpr
optional<t_TYPE>&
operator=(bsl::nullopt_t nullopt) noexcept;
Description
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.
Return Value
reference providing modifiable access to this object
Parameters
Name |
Description |
nullopt |
disengaged‐optional tag; value is unused |
Created with MrDocs