[#BloombergLP-bdlb-NullableValue-valueOr-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::valueOr :relfileprefix: ../../../ :mrdocs: `valueOr` overloads == Synopses Declared in `<bdlb_nullablevalue.h>` Return the value of the underlying object of a (template parameter) `TYPE` if this object is non‐null, and the specified `value` otherwise. Note that this method returns _by_ _value_, so may be inefficient in some contexts. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE xref:BloombergLP/bdlb/NullableValue/valueOr-0e.adoc[valueOr](TYPE const& value) const; ---- [.small]#xref:BloombergLP/bdlb/NullableValue/valueOr-0e.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE const* xref:BloombergLP/bdlb/NullableValue/valueOr-09.adoc[valueOr](TYPE const* value) const; ---- [.small]#xref:BloombergLP/bdlb/NullableValue/valueOr-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#