[#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`. Return a reference providing modifiable access to the created (value) object. The object is also accessible via the `value` method. If this nullable object already contains an object (`false == isNull()`), that object is destroyed before the new object is created. If `TYPE` has the trait `bslma::UsesBslmaAllocator` (`TYPE` is allocator‐enabled) the allocator specified at the construction of this nullable object is used to supply memory to the value object. Attempts to explicitly specify via `args` another allocator to supply memory to the created (value) object are disallowed by the compiler. Note that if the constructor of `TYPE` throws an exception this object is left in the null state. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... ARGS> TYPE& makeValueInplace(ARGS&&... args); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#