BloombergLP::bdlar::bdlat_arrayManipulateElement

Invoke the specified manipulator on the address of the element at the specified index of the specified array.

Synopsis

Declared in <bdlar_arrayref.h>

template<class t_MANIPULATOR>
int
bdlat_arrayManipulateElement(
    ArrayRef* array,
    t_MANIPULATOR& manipulator,
    int index);

Description

Return the value from the invocation of manipulator.

Return Value

value from the invocation of manipulator

Parameters

NameDescription
arrayarray reference to manipulate
manipulatorcallable invoked on the element
indexzero-based index of the element