[#BloombergLP-baljsn-EncoderTestSequenceWithAllCategoriesChoice-accessSelection]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestSequenceWithAllCategoriesChoice.adoc[EncoderTestSequenceWithAllCategoriesChoice]::accessSelection
:relfileprefix: ../../../
:mrdocs:

Invoke the specified &apos;accessor&apos; on the non&hyphen;modifiable selection, supplying &apos;accessor&apos; with the corresponding selection information structure&period; Return the value returned from the invocation of &apos;accessor&apos; if this object has a defined selection, and &hyphen;1 otherwise&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;encoder&lowbar;testtypes&period;h&gt;`

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


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