[#BloombergLP-bdlat_ArrayFunctions-accessElement] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ArrayFunctions.adoc[bdlat_ArrayFunctions]::accessElement :relfileprefix: ../../ :mrdocs: Invoke the specified `accessor` on the non‐modifiable element at the specified `index` of the specified `array`. The supplied `accessor` must be a callable type that can be called as if it had the following signature: ` int accessor(const ELEMENT_TYPE& element); ` Return the value from the invocation of `accessor`. The behavior is undefined unless `0 <= index` and `index < size(array)`. == Synopsis Declared in `<bdlat_arrayfunctions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class ACCESSOR> int accessElement( TYPE const& array, ACCESSOR& accessor, int index); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#