[#BloombergLP-baljsn-EncoderTestSequenceWithUntagged13Sequence-accessAttribute-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestSequenceWithUntagged13Sequence.adoc[EncoderTestSequenceWithUntagged13Sequence]::accessAttribute :relfileprefix: ../../../ :mrdocs: Invoke the specified 'accessor' on the (non‐modifiable) attribute of this object indicated by the specified 'id', supplying 'accessor' with the corresponding. == Synopsis Declared in `<baljsn_encoder_testtypes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_ACCESSOR> int accessAttribute( t_ACCESSOR& accessor, int id) const; ---- == Description attribute information structure. Return the value returned from the invocation of 'accessor' if 'id' identifies an attribute of this class, 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 matching attribute | *id* | attribute identifier |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#