[#BloombergLP-bdlat_ArrayFunctions-manipulateElement]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ArrayFunctions.adoc[bdlat&lowbar;ArrayFunctions]::manipulateElement
:relfileprefix: ../../
:mrdocs:

&grave; Return the value from the invocation of `manipulator`&period; The behavior is undefined unless `0 &lt;&equals; index` and `index &lt; size(&ast;array)`&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;arrayfunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class MANIPULATOR&gt;
int
manipulateElement(
    TYPE* array,
    MANIPULATOR& manipulator,
    int index);
----

== Return Value

result of invoking `manipulator`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| array whose element is manipulated
| *manipulator*
| functor applied to the element at `index`
| *index*
| position of the element to manipulate
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
