BloombergLP::bdlb::NullableValue::makeValue

Assign the specified value converted to TYPE to this object.

Synopsis

Declared in <bdlb_nullablevalue.h>

template<class BDE_OTHER_TYPE>
TYPE&
makeValue(BDE_OTHER_TYPE&& value);

Description

Assign to this object the specified value (of BDE_OTHER_TYPE) converted to TYPE, and return a reference providing modifiable access to the underlying TYPE object. Note that this method will fail to compile if TYPE and BDE_OTHER_TYPE are not compatible.

Return Value

a reference providing modifiable access to the underlying TYPE object

Parameters

NameDescription
valuevalue converted to TYPE