[#BloombergLP-baljsn-EncoderTestChoiceWithAllCategoriesChoice-accessSelection] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesChoice.adoc[EncoderTestChoiceWithAllCategoriesChoice]::accessSelection :relfileprefix: ../../../ :mrdocs: Invoke the specified 'accessor' on the non‐modifiable selection, supplying 'accessor' with the corresponding selection information structure. Return the value returned from the invocation of 'accessor' if this object has a defined selection, and ‐1 otherwise. == Synopsis Declared in `<baljsn_encoder_testtypes.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]#