[#BloombergLP-bdlb-NullableValue-2constructor-0cb]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::NullableValue
:relfileprefix: ../../../
:mrdocs:

Create a nullable object having the same value as the specified `original` object but using the specified `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&period; The contents of `original` are moved to the newly&hyphen;created object using the extended move constructor for `TYPE`&period; `original` is left in a valid but unspecified state&period; Note that this constructor will not participate in overload resolution unless `TYPE` is allocator aware&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
NullableValue(
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;NullableValue&gt;] original,
    xref:BloombergLP/bdlb/NullableValue/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----


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