[#BloombergLP-bslstl-Optional_Base-05-2constructor-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base]::Optional_Base :relfileprefix: ../../../ :mrdocs: Create an optional from `original` using `allocator`. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ANY_TYPE> Optional_Base( std::allocator_arg_t allocatorArg, xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[allocator_type] allocator, xref:BloombergLP/bslstl/Optional_CopyConstructFromStdOptional.adoc[BloombergLP::bslstl::Optional_CopyConstructFromStdOptional] tag, std::optional<t_ANY_TYPE> const& original); ---- == Description Otherwise, create a disengaged `Optional_Base` object. Use the specified `allocator` to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *allocator* | allocator used to supply memory | *original* | source value used to initialize the optional | *allocatorArg* | tag selecting the allocator‐extended constructor | *tag* | tag selecting this constructor overload |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#