[#BloombergLP-bdlar-ChoiceConstRef-accessSelection] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceConstRef.adoc[ChoiceConstRef]::accessSelection :relfileprefix: ../../../ :mrdocs: Invoke the specified `accessor` on the (non‐modifiable) selection, supplying `accessor` with the corresponding selection information structure. The supplied `accessor` must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int accessor(const SELECTION& refOrValue, const t_INFO& info); ` Return the value returned from the invocation of `accessor`. The behavior is undefined unless `selectionId() != ‐1`. == Synopsis Declared in `<bdlar_choiceref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_ACCESSOR> int accessSelection(t_ACCESSOR& accessor) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#