[#BloombergLP-bdlar-SequenceRef-accessAttribute-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/SequenceRef.adoc[SequenceRef]::accessAttribute
:relfileprefix: ../../../
:mrdocs:

Invoke the specified `accessor` on the (non&hyphen;modifiable) attribute of the referred sequence object indicated by the specified `attributeName` and `attributeNameLength`, supplying `accessor` with the corresponding attribute information structure&period; The supplied `accessor` must be a callable type that can be called as if it had the following signature&colon; &grave; template &lt;class t&lowbar;INFO&gt; int accessor(const ATTRIBUTE&amp; refOrValue, const t&lowbar;INFO&amp; info)&semi; &grave; Return non&hyphen;zero value if the attribute is not found, and the value returned from the invocation of `accessor` otherwise&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;sequenceref&period;h&gt;`

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


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