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