[#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`. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class BDE_OTHER_TYPE> NullableValue(BDE_OTHER_TYPE&& value) requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value && !bsl::is_convertible<BDE_OTHER_TYPE, allocator_type>::value; ---- == Description 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`. == Parameters [cols="1,4"] |=== | Name| Description | *value* | value converted to `TYPE` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#