[#BloombergLP-bdlb-NullableValue-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::NullableValue :relfileprefix: ../../../ :mrdocs: Create a nullable object having the value of the specified `value` (of `BDE_OTHER_TYPE`) converted to `TYPE` and that uses the specified `allocator` to supply memory. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class BDE_OTHER_TYPE> NullableValue( xref:bsl/optional-072.adoc[bsl::optional<BDE_OTHER_TYPE>] const& value, xref:BloombergLP/bdlb/NullableValue/allocator_type.adoc[allocator_type] const& allocator, xref:BloombergLP/bdlb/NullableValue.adoc[EnableType] = EnableType()) requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value && !bsl::is_same<bsl::optional<BDE_OTHER_TYPE>, TYPE>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#