[#BloombergLP-bdlb-VariantImp-createInPlace] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::createInPlace :relfileprefix: ../../../ :mrdocs: Create an instance of template parameter `TYPE` in this variant object with up to 14 parameters using the allocator currently held by this variant to supply memory, and return a reference providing modifiable access to the created instance. 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. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class... ARGS> TYPE& createInPlace(ARGS&&... arguments); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#