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.

template<class t_ACCESSOR>
int
bdlat_arrayAccessElement(
    ArrayConstRef const& array,
    t_ACCESSOR& accessor,
    int index);

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

template<class t_ACCESSOR>
int
bdlat_arrayAccessElement(
    ArrayRef const& array,
    t_ACCESSOR& accessor,
    int index);

Return Value

value from the invocation of accessor

Parameters

Name

Description

array

array reference to access

accessor

callable invoked on the element

index

zero‐based index of the element

Created with MrDocs