BloombergLP::bdlat_ArrayFunctions::bdlat_arrayManipulateElement

Apply the specified manipulator to the element at the specified index in the specified array.

Synopsis

Declared in <bdlat_arrayfunctions.h>

template<
    class TYPE,
    class ALLOC,
    class MANIPULATOR>
int
bdlat_arrayManipulateElement(
    bsl::vector<TYPE, ALLOC>* 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