BloombergLP::bdlat_ArrayFunctions::bdlat_arrayAccessElement

Invoke the specified accessor on the element at the specified index of the specified array. Return the value from the invocation of accessor.

Synopsis

Declared in <bdlat_arrayfunctions.h>

template<
    class TYPE,
    class ALLOC,
    class ACCESSOR>
int
bdlat_arrayAccessElement(
    bsl::vector<TYPE, ALLOC> const& array,
    ACCESSOR& accessor,
    int index);