BloombergLP::bdlb::NullableValue::NullableValue

Create a nullable object converted from the specified original.

Synopsis

Declared in <bdlb_nullablevalue.h>

template<class BDE_OTHER_TYPE>
explicit
NullableValue(NullableValue<BDE_OTHER_TYPE> const& original);

Description

Create a nullable object having the null value if the specified original object is null, and the value of original.value() (of BDE_OTHER_TYPE) converted to TYPE otherwise. If TYPE takes an optional allocator at construction, use the currently installed default allocator to supply memory. Note that this method will fail to compile if TYPE and `BDE_OTHER_TYPE' are not compatible.

Parameters

NameDescription
originalsource nullable value to convert