[#BloombergLP-bdlb-VariantImp-createInPlace] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::createInPlace :relfileprefix: ../../../ :mrdocs: Emplace a `TYPE` instance constructed from `arguments`. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class... ARGS> TYPE& createInPlace(ARGS&&... arguments); ---- == Description This method first destroys the current value held by this variant (even if `TYPE` is the same as the type currently held). `TYPE` must be the same as one of the types that this variant can hold. Note the order of the template arguments was chosen so that `TYPE` must always be specified. == Return Value reference providing modifiable access to the emplaced `TYPE` value == Parameters [cols="1,4"] |=== | Name| Description | *arguments* | constructor arguments forwarded to `TYPE` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#