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

Create a nullable object from the specified `value` converted 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(BDE&lowbar;OTHER&lowbar;TYPE&& value)
requires bsl&colon;&colon;is&lowbar;convertible&lt;BDE&lowbar;OTHER&lowbar;TYPE, TYPE&gt;&colon;&colon;value &amp;&amp;
                      !bsl&colon;&colon;is&lowbar;convertible&lt;BDE&lowbar;OTHER&lowbar;TYPE,
                                           allocator&lowbar;type&gt;&colon;&colon;value;
----

== Description

Create a nullable object having the specified `value` (of `BDE&lowbar;OTHER&lowbar;TYPE`) converted to `TYPE`&period; If `TYPE` takes an optional allocator at construction, use the currently installed default allocator to supply memory&period; Note that this constructor will not participate in overload resolution unless `BDE&lowbar;OTHER&lowbar;TYPE` is convertible to `TYPE` and is not convertible to `allocator&lowbar;type`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value converted to `TYPE`
|===


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