Create a null nullable object that uses the specified allocator.

Synopsis

Declared in <bdlb_nullablevalue.h>

NullableValue(
    bsl::nullopt_t const& nullopt,
    allocator_type const& allocator) noexcept;

Description

Create a nullable object that has the null value; use the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory for subsequent values assigned to this object. Note that this constructor will not participate in overload resolution unless TYPE is allocator aware.

Parameters

Name

Description

nullopt

disengaged‐optional tag

allocator

allocator used to supply memory

Created with MrDocs