Assign a new value to this optional.
Synopsis
Declared in <bslstl_optional.h>
Description
Assign to this object the value of the specified rhs object, and return a non‐`const` reference to this object. The allocators of this object and rhs both remain unchanged. The contents of rhs are either move‐constructed into or move‐assigned to this object. rhs is left in a valid but unspecified state.
Return Value
reference providing modifiable access to this object
Parameters
Name |
Description |
rhs |
right‐hand operand |
Created with MrDocs