[#BloombergLP-balb-SimpleRequest-accessAttribute-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/SimpleRequest.adoc[SimpleRequest]::accessAttribute :relfileprefix: ../../../ :mrdocs: `accessAttribute` overloads == Synopses Declared in `<balb_testmessages.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ACCESSOR> int xref:BloombergLP/balb/SimpleRequest/accessAttribute-0b.adoc[accessAttribute]( ACCESSOR& accessor, int id) const; ---- [.small]#xref:BloombergLP/balb/SimpleRequest/accessAttribute-0b.adoc[_» more..._]# Invoke the specified `accessor` on the (non‐modifiable) attribute of this object indicated by the specified `name` of the specified `nameLength`, supplying `accessor` with the corresponding attribute information structure. Return the value returned from the invocation of `accessor` if `name` identifies an attribute of this class, and ‐1 otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ACCESSOR> int xref:BloombergLP/balb/SimpleRequest/accessAttribute-0e.adoc[accessAttribute]( ACCESSOR& accessor, char const* name, int nameLength) const; ---- [.small]#xref:BloombergLP/balb/SimpleRequest/accessAttribute-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#