[#BloombergLP-bdlb-NullableValue-makeValueInplace]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::makeValueInplace
:relfileprefix: ../../../
:mrdocs:

Assign to this nullable object the value of the (template parameter) `TYPE` created in place using the specified `args`&period; Return a reference providing modifiable access to the created (value) object&period; The object is also accessible via the `value` method&period; If this nullable object already contains an object (`false &equals;&equals; isNull()`), that object is destroyed before the new object is created&period; If `TYPE` has the trait `bslma&colon;&colon;UsesBslmaAllocator` (`TYPE` is allocator&hyphen;enabled) the allocator specified at the construction of this nullable object is used to supply memory to the value object&period; Attempts to explicitly specify via `args` another allocator to supply memory to the created (value) object are disallowed by the compiler&period; Note that if the constructor of `TYPE` throws an exception this object is left in the null state&period;

== Synopsis

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

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


[.small]#Created with https://www.mrdocs.com[MrDocs]#
