BloombergLP::bslstl::Optional_Base::operator=

Assignment operators

Synopses

Declared in <bslstl_optional.h>

Assign to this object the value of the specified rhs object, and return a non-const reference to this object.

Optional_Base<t_TYPE, t_USES_BSLMA_ALLOC>&
operator=(Optional_Base const& rhs);
» more...

Assign a new value to this optional.

Optional_Base<t_TYPE, t_USES_BSLMA_ALLOC>&
operator=(BloombergLP::bslmf::MovableRef<Optional_Base> rhs);
» more...

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
rhsright-hand operand