[#BloombergLP-bdlb-NullableValue-valueOr-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::valueOr :relfileprefix: ../../../ :mrdocs: Return the address of the contained value, or `value` if null. == Synopsis Declared in `<bdlb_nullablevalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE const* valueOr(TYPE const* value) const; ---- == Description Return an address providing non‐modifiable access to the underlying object of a (template parameter) `TYPE` if this object is non‐null, and the specified `value` otherwise. DEPRECATED: Use `addressOr` instead. == Return Value address of the underlying object if non‐null, and `value` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *value* | fallback address returned when this object is null |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#