Create a disengaged optional object.

Synopsis

Declared in <bslstl_optional.h>

optional(
    std::allocator_arg_t allocatorArg,
    AllocType allocator);

Description

Use the specified allocator to supply memory.

Parameters

Name

Description

allocatorArg

tag selecting the allocator‐extended constructor

allocator

allocator used to supply memory

Created with MrDocs