[#BloombergLP-bdlb-NullableAllocatedValue-valueOrNull]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue]::valueOrNull
:relfileprefix: ../../../
:mrdocs:

Return an address providing non&hyphen;modifiable access to the underlying object of a (template parameter) `TYPE` if this object is non&hyphen;null, and 0 otherwise&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullableallocatedvalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TYPE const*
valueOrNull() const;
----

== Return Value

address of the contained value, or 0 if null


[.small]#Created with https://www.mrdocs.com[MrDocs]#
