[#BloombergLP-bdlar-bdlat_arrayAccessElement-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat&lowbar;arrayAccessElement
:relfileprefix: ../../
:mrdocs:

Invoke the specified `accessor` on the array element at the specified `index` of the specified `array`&period; Return the value from the invocation of `accessor`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ACCESSOR&gt;
int
bdlat&lowbar;arrayAccessElement(
    xref:BloombergLP/bdlar/ArrayRef.adoc[ArrayRef] const& array,
    t&lowbar;ACCESSOR& accessor,
    int index);
----


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