[#BloombergLP-bslstl-Optional_Base-05-emplace-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base]::emplace :relfileprefix: ../../../ :mrdocs: Destroy any contained value and construct a new one in place. == Synopses Declared in `<bslstl_optional.h>` Destroy any contained value and construct a new one in place. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> t_TYPE& xref:BloombergLP/bslstl/Optional_Base-05/emplace-0f.adoc[emplace](t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/emplace-0f.adoc[_» more..._]# Destroy any contained value and construct a new one in place. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_INIT_LIST_TYPE, class... t_ARGS> t_TYPE& xref:BloombergLP/bslstl/Optional_Base-05/emplace-0c.adoc[emplace]( std::initializer_list<t_INIT_LIST_TYPE> il, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/emplace-0c.adoc[_» more..._]# == Return Value reference providing modifiable access to the contained value == Parameters [cols="1,4"] |=== | Name| Description | *args* | arguments forwarded to construct the contained value | *il* | initializer list forwarded to construct the contained value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#