[#BloombergLP-bslstl-Optional_Base-08-assignOrEmplace] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-08.adoc[Optional_Base<t_TYPE, false>]::assignOrEmplace :relfileprefix: ../../../ :mrdocs: If `*this` holds an object, assign to that object the value of the specified `rhs`, converted to `t_TYPE`. Otherwise, construct a held object from `rhs`, converted to `t_TYPE`. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ANY_TYPE> constexpr void assignOrEmplace(t_ANY_TYPE&& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#