[#BloombergLP-bslstl-Optional_Base-05-2constructor-09f] = 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_Base` object. == 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_CopyConstructFromOtherOptional.adoc[BloombergLP::bslstl::Optional_CopyConstructFromOtherOptional] tag, xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base<t_ANY_TYPE>] const& original); ---- == Description If the specified `original` contains a value, create an `Optional_Base` object whose contained value is initialized from `*original`, converted to `t_TYPE`. Otherwise, create a disengaged `Optional_Base`. 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 | *tag* | tag selecting this constructor overload | *original* | source optional used to initialize this object |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#