[#BloombergLP-bdlar-bdlat_arrayAccessElement-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat_arrayAccessElement :relfileprefix: ../../ :mrdocs: Invoke the specified `accessor` on the array element at the specified `index` of the specified `array`. Return the value from the invocation of `accessor`. == Synopses Declared in `<bdlar_arrayref.h>` Invoke the specified `accessor` on the array element at the specified `index` of the specified `array`. Return the value from the invocation of `accessor`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ACCESSOR> int xref:BloombergLP/bdlar/bdlat_arrayAccessElement-01.adoc[bdlat_arrayAccessElement]( xref:BloombergLP/bdlar/ArrayConstRef.adoc[ArrayConstRef] const& array, t_ACCESSOR& accessor, int index); ---- [.small]#xref:BloombergLP/bdlar/bdlat_arrayAccessElement-01.adoc[_» more..._]# Invoke the specified `accessor` on the array element at the specified `index` of the specified `array`. Return the value from the invocation of `accessor`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ACCESSOR> int xref:BloombergLP/bdlar/bdlat_arrayAccessElement-08.adoc[bdlat_arrayAccessElement]( xref:BloombergLP/bdlar/ArrayRef.adoc[ArrayRef] const& array, t_ACCESSOR& accessor, int index); ---- [.small]#xref:BloombergLP/bdlar/bdlat_arrayAccessElement-08.adoc[_» more..._]# == Return Value value from the invocation of `accessor` == Parameters [cols="1,4"] |=== | Name| Description | *array* | array reference to access | *accessor* | callable invoked on the element | *index* | zero‐based index of the element |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#