Create a nullable object having the same value as the specified original object but using the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. The contents of original are moved to the newly‐created object using the extended move constructor for TYPE. original is left in a valid but unspecified state. Note that this constructor will not participate in overload resolution unless TYPE is allocator aware.

Synopsis

Declared in <bdlb_nullablevalue.h>

NullableValue(
    bslmf::MovableRef<NullableValue> original,
    allocator_type const& allocator);

Created with MrDocs