Invoke the specified manipulator on the array element at the specified index.
Synopsis
Declared in <bdlar_arrayref.h>
template<class t_MANIPULATOR>
int
manipulateElement(
t_MANIPULATOR& manipulator,
int index) const;
Description
The supplied manipulator must be a callable type that can be called as if it had the following signature: ` int manipulator(ELEMENT *refOrValue); ` Return the value from the invocation of manipulator. The behavior is undefined unless 0 <= index < size().
Return Value
value from the invocation of manipulator
Parameters
Name |
Description |
manipulator |
callable invoked on the element |
index |
zero‐based index of the element |
Created with MrDocs