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

Create a nullable object that has the null value if the specified `original` object is null, and the value of `original&period;value()` (of `BDE&lowbar;OTHER&lowbar;TYPE`) converted to `TYPE` otherwise&period; Use the specified `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&period; Note that this constructor will not participate in overload resolution unless `TYPE` is allocator aware&period; Also note that compilation will fail if this function is called with a `BDE&lowbar;OTHER&lowbar;TYPE` that is not convertible to `TYPE`&period;

== Synopsis

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

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


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