[#BloombergLP-bdlat_ChoiceFunctions-accessSelection]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ChoiceFunctions.adoc[bdlat&lowbar;ChoiceFunctions]::accessSelection
:relfileprefix: ../../
:mrdocs:

Invoke the specified `accessor` on the (non&hyphen;modifiable) selection of the specified `object`, supplying `accessor` with the corresponding selection information structure&period; The supplied `accessor` 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 accessor(const SELECTION&lowbar;TYPE&amp; selection, const t&lowbar;INFO&amp; info)&semi; &grave; Return the value returned from the invocation of `accessor`&period; The behavior is undefined unless `k&lowbar;UNDEFINED&lowbar;SELECTION&lowbar;ID !&equals; selectionId(object)`&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;choicefunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class ACCESSOR&gt;
int
accessSelection(
    TYPE const& object,
    ACCESSOR& accessor);
----


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