[#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 `&lt;balb&lowbar;testmessages&period;h&gt;`

Invoke the specified `accessor` on the (non&hyphen;modifiable) attribute of this object indicated by the specified `id`, supplying `accessor` with the corresponding attribute information structure&period; Return the value returned from the invocation of `accessor` if `id` identifies an attribute of this class, and &hyphen;1 otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ACCESSOR&gt;
int
xref:BloombergLP/balb/SimpleRequest/accessAttribute-0b.adoc[accessAttribute](
    ACCESSOR& accessor,
    int id) const;
----

[.small]#xref:BloombergLP/balb/SimpleRequest/accessAttribute-0b.adoc[_» more&period;&period;&period;_]#

Invoke the specified `accessor` on the (non&hyphen;modifiable) attribute of this object indicated by the specified `name` of the specified `nameLength`, supplying `accessor` with the corresponding attribute information structure&period; Return the value returned from the invocation of `accessor` if `name` identifies an attribute of this class, and &hyphen;1 otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ACCESSOR&gt;
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&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
