[#BloombergLP-bdlar-ChoiceRef-manipulateSelection]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::manipulateSelection
:relfileprefix: ../../../
:mrdocs:

Invoke the specified `manipulator` on the address of the (modifiable) selection, supplying `manipulator` with the corresponding selection information structure&period; The supplied `manipulator` must be a callable type that can be called as if it had the following signature&colon; &grave; template &lt;class t&lowbar;INFO&gt; int manipulator(SELECTION &ast;refOrValue, const t&lowbar;INFO&amp; info)&semi; &grave; Return the value returned from the invocation of `manipulator`&period; The behavior is undefined unless `selectionId() !&equals; &hyphen;1`&period;

== Synopsis

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

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


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