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

Create a nullable object converted from the specified `original`&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;
explicit
NullableValue(xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue&lt;BDE&lowbar;OTHER&lowbar;TYPE&gt;] const& original);
----

== Description

Create a nullable object having 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; If `TYPE` takes an optional allocator at construction, use the currently installed default allocator to supply memory&period; Note that this method will fail to compile if `TYPE` and &grave;BDE&lowbar;OTHER&lowbar;TYPE&apos; are not compatible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| source nullable value to convert
|===


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