[#BloombergLP-balb-Sequence2-accessAttribute-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/Sequence2.adoc[Sequence2]::accessAttribute :relfileprefix: ../../../ :mrdocs: Invoke the specified accessor on the attribute indicated by `id`. == Synopsis Declared in `<balb_testmessages.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ACCESSOR> int accessAttribute( ACCESSOR& accessor, int id) const; ---- == Description Invoke the specified `accessor` on the (non‐modifiable) attribute of this object indicated by the specified `id`, supplying `accessor` with the corresponding 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 value returned from the invocation of `accessor` if `id` identifies an attribute of this class, and ‐1 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *accessor* | functor invoked on the matching attribute | *id* | attribute identifier |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#