[#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`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class&period;&period;&period; ARGS&gt;
TYPE&
createInPlace(ARGS&&&period;&period;&period; arguments);
----

== Description

This method first destroys the current value held by this variant (even if `TYPE` is the same as the type currently held)&period; `TYPE` must be the same as one of the types that this variant can hold&period; Note the order of the template arguments was chosen so that `TYPE` must always be specified&period;

== 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]#
