[#BloombergLP-bdlar-bdlat_arrayAccessElement-08] = 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`. == Synopsis Declared in `<bdlar_arrayref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ACCESSOR> int bdlat_arrayAccessElement( xref:BloombergLP/bdlar/ArrayRef.adoc[ArrayRef] const& array, t_ACCESSOR& accessor, int index); ---- == 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]#