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