BloombergLP::bdlb::NullableValue::NullableValue

Create a nullable object having the value of the specified value (of BDE_OTHER_TYPE) converted to TYPE and that uses the specified allocator to supply memory.

Synopsis

Declared in <bdlb_nullablevalue.h>

template<class BDE_OTHER_TYPE>
NullableValue(
    bsl::optional<BDE_OTHER_TYPE> const& value,
    allocator_type const& allocator,
    EnableType = EnableType())
requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value &&
                     !bsl::is_same<bsl::optional<BDE_OTHER_TYPE>, TYPE>::value;