bsl::optional::optional

Create a disengaged optional object.

Synopsis

Declared in <bslstl_optional.h>

optional(
    std::allocator_arg_t allocatorArg,
    AllocType allocator,
    bsl::nullopt_t nullopt);

Description

Use the specified allocator to supply memory.

Parameters

NameDescription
allocatorArgtag selecting the allocator-extended constructor
allocatorallocator used to supply memory
nulloptdisengaged-optional tag; value is unused