[#BloombergLP-baljsn-EncoderTestSequenceWithUntagged14-accessAttribute-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestSequenceWithUntagged14.adoc[EncoderTestSequenceWithUntagged14]::accessAttribute
:relfileprefix: ../../../
:mrdocs:

Invoke the specified &apos;accessor&apos; on the (non&hyphen;modifiable) attribute of this object indicated by the specified &apos;name&apos; of the specified &apos;nameLength&apos;, supplying&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;encoder&lowbar;testtypes&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename t&lowbar;ACCESSOR&gt;
int
accessAttribute(
    t&lowbar;ACCESSOR& accessor,
    char const* name,
    int nameLength) const;
----

== Description

&apos;accessor&apos; with the corresponding attribute information structure&period; Return the value returned from the invocation of &apos;accessor&apos; if &apos;name&apos; identifies an attribute of this class, and &hyphen;1 otherwise&period;

== Return Value

the value returned from the invocation of `accessor`, or a non&hyphen;zero value on failure

== Parameters

[cols="1,4"]
|===
| Name| Description
| *accessor*
| functor invoked on the matching attribute
| *name*
| attribute name
| *nameLength*
| length of `name`
|===


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