[#BloombergLP-bslstl-Optional_Base-05-2constructor-09b] = 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 whose contained value is initialized from the specified `il` and `args`. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_INIT_LIST_TYPE, class... t_ARGS> Optional_Base( std::allocator_arg_t allocatorArg, xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[allocator_type] allocator, std::in_place_t inPlace, std::initializer_list<t_INIT_LIST_TYPE> il, t_ARGS&&... args); ---- == Description Use the specified `allocator` to supply memory. contained value value == Parameters [cols="1,4"] |=== | Name| Description | *allocatorArg* | tag selecting the allocator‐extended constructor | *allocator* | allocator used to supply memory | *inPlace* | tag selecting in‐place construction of the contained | *il* | initializer list forwarded to construct the contained value | *args* | arguments forwarded to construct the contained value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#