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)
requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value &&
                     !bsl::is_same<bsl::optional<BDE_OTHER_TYPE>, TYPE>::value;

Parameters

Name

Description

value

optional object providing the initial value

allocator

allocator used to supply memory

Created with MrDocs