BloombergLP::bdlb::NullableAllocatedValue::operator=

Assignment operators

Synopses

Declared in <bdlb_nullableallocatedvalue.h>

Assign to this object the value of the specified rhs, and return a reference providing modifiable access to this object.

NullableAllocatedValue<TYPE>&
operator=(NullableAllocatedValue const& rhs);
» more...

Assign to this object the value of the specified rhs, and return a reference providing modifiable access to the underlying TYPE object.

NullableAllocatedValue<TYPE>&
operator=(TYPE const& rhs);
» more...

Reset this object to the default constructed state (i.e., to have the null value).

NullableAllocatedValue<TYPE>&
operator=(bsl::nullopt_t const& nullopt);
» more...

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
rhsright-hand operand
nulloptdisengaged-optional tag; value is unused