[#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 having the specified `value` (of `BDE_OTHER_TYPE`) converted to `TYPE`. If `TYPE` takes an optional allocator at construction, use the currently installed default allocator to supply memory. Note that this constructor will not participate in overload resolution unless `BDE_OTHER_TYPE` is convertible to `TYPE` and is not convertible to `allocator_type`. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class BDE_OTHER_TYPE> NullableValue( BDE_OTHER_TYPE&& value, xref:BloombergLP/bdlb/NullableValue.adoc[EnableType] = EnableType()) requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value && !bsl::is_convertible<BDE_OTHER_TYPE, allocator_type>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#