[#bsl-optional-072-2constructor-08f] = xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::optional :relfileprefix: ../../ :mrdocs: Create a disengaged `optional` object. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- optional( std::allocator_arg_t allocatorArg, xref:bsl/optional-072.adoc[AllocType] allocator, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] nullopt); ---- == Description Use the specified `allocator` to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *allocatorArg* | tag selecting the allocator‐extended constructor | *allocator* | allocator used to supply memory | *nullopt* | disengaged‐optional tag; value is unused |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#