[#BloombergLP-bdlar-bdlat_choiceManipulateSelection] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat_choiceManipulateSelection :relfileprefix: ../../ :mrdocs: Invoke the specified `manipulator` on the current selection of the specified `ref`. Return the value from the invocation of `manipulator`. == Synopsis Declared in `<bdlar_choiceref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_MANIPULATOR> int bdlat_choiceManipulateSelection( xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]* ref, t_MANIPULATOR& manipulator); ---- == Return Value value from the invocation of `manipulator` == Parameters [cols="1,4"] |=== | Name| Description | *ref* | choice reference to manipulate | *manipulator* | callable invoked on the current selection |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#