[#BloombergLP-bdlar-bdlat_choiceAccessSelection-0305]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat&lowbar;choiceAccessSelection
:relfileprefix: ../../
:mrdocs:

Invoke the specified `accessor` on the current selection of the specified `ref`&period; Return the value from the invocation of `accessor`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ACCESSOR&gt;
int
bdlat&lowbar;choiceAccessSelection(
    xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef] const& ref,
    t&lowbar;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]#
