[#BloombergLP-baljsn-EncoderTestChoiceWithAllCategoriesChoice-accessSelection] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesChoice.adoc[EncoderTestChoiceWithAllCategoriesChoice]::accessSelection :relfileprefix: ../../../ :mrdocs: Invoke `accessor` on the non‐modifiable current selection. == Synopsis Declared in `<baljsn_encoder_testtypes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_ACCESSOR> int accessSelection(t_ACCESSOR& accessor) const; ---- == Description 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. == Return Value the value returned from the invocation of `accessor`, or a non‐zero value on failure == Parameters [cols="1,4"] |=== | Name| Description | *accessor* | functor invoked on the current selection |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#