BloombergLP::bdlat_ArrayFunctions::manipulateElement

` Return the value from the invocation of manipulator. The behavior is undefined unless 0 <= index and index < size(*array).

Synopsis

Declared in <bdlat_arrayfunctions.h>

template<
    class TYPE,
    class MANIPULATOR>
int
manipulateElement(
    TYPE* array,
    MANIPULATOR& manipulator,
    int index);

Return Value

result of invoking manipulator

Parameters

NameDescription
arrayarray whose element is manipulated
manipulatorfunctor applied to the element at index
indexposition of the element to manipulate