BloombergLP::bdlb::NullableValue::NullableValue

Create a copy of original that uses the specified allocator.

Synopsis

Declared in <bdlb_nullablevalue.h>

NullableValue(
    NullableValue const& original,
    allocator_type const& allocator);

Description

Create a nullable object that has the value of the specified original object and uses the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. Note that this constructor will not participate in overload resolution unless TYPE is allocator aware.

Parameters

NameDescription
originalobject providing the initial value
allocatorallocator used to supply memory