[#BloombergLP-bdlar-ArrayRef-manipulateElement]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ArrayRef.adoc[ArrayRef]::manipulateElement
:relfileprefix: ../../../
:mrdocs:

Invoke the specified `manipulator` on the array element at the specified `index`&period; The supplied `manipulator` must be a callable type that can be called as if it had the following signature&colon; &grave; int manipulator(ELEMENT &ast;refOrValue)&semi; &grave; Return the value from the invocation of `manipulator`&period; The behavior is undefined unless `0 &lt;&equals; index &lt; size()`&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;arrayref&period;h&gt;`

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


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