[#BloombergLP-bdlar-NullableValueRef-accessValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/NullableValueRef.adoc[NullableValueRef]::accessValue
:relfileprefix: ../../../
:mrdocs:

Invoke the specified `accessor` on the referred non&hyphen;null value&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;nullablevalueref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ACCESSOR&gt;
int
accessValue(t&lowbar;ACCESSOR& accessor) const;
----

== Description

The supplied `accessor` must be a callable type that can be called as if it had the following signature&colon; &grave; int accessor(const VALUE&amp; refOrValue)&semi; &grave; Return the value from the invocation of `accessor`&period; The behavior is undefined if the referred object is null&period;

== Return Value

value from the invocation of `accessor`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *accessor*
| callable invoked on the non&hyphen;null value
|===


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