[#BloombergLP-bslstl-Optional_DataImp-emplace-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_DataImp.adoc[Optional_DataImp]::emplace :relfileprefix: ../../../ :mrdocs: `emplace` overloads == Synopses Declared in `<bslstl_optional.h>` Create an object of `StoredType` in `d_buffer` using the specified `allocator` and `args` and return a reference providing modifiable access to the underlying `t_TYPE` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> t_TYPE& xref:BloombergLP/bslstl/Optional_DataImp/emplace-07.adoc[emplace]( xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/emplace-07.adoc[_» more..._]# Create an object of `StoredType` in `d_buffer` using the specified `allocator`, `initializer_list`, and `args`, and return a reference providing modifiable access to the underlying `t_TYPE` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_INIT_LIST_TYPE, class... t_ARGS> t_TYPE& xref:BloombergLP/bslstl/Optional_DataImp/emplace-03.adoc[emplace]( xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator, std::initializer_list<t_INIT_LIST_TYPE> initializer_list, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/emplace-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#