[#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.value()` (of `BDE_OTHER_TYPE`) converted to `TYPE` otherwise. Use the specified `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory. Note that this constructor will not participate in overload resolution unless `TYPE` is allocator aware. Also note that compilation will fail if this function is called with a `BDE_OTHER_TYPE` that is not convertible to `TYPE`. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class BDE_OTHER_TYPE> NullableValue( xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<BDE_OTHER_TYPE>] const& original, xref:BloombergLP/bdlb/NullableValue/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#