[#BloombergLP-bdlar-SequenceConstRef-accessAttributes]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/SequenceConstRef.adoc[SequenceConstRef]::accessAttributes
:relfileprefix: ../../../
:mrdocs:

Invoke the specified `accessor` on each attribute until non&hyphen;zero&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
accessAttributes(t&lowbar;ACCESSOR& accessor) const;
----

== Description

Invoke the specified `accessor` sequentially on each attribute, supplying `accessor` with the corresponding attribute information structure until such invocation returns a non&hyphen;zero value&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 the value from the last invocation of `accessor` (i&period;e&period;, the invocation that terminated the sequence)&period;

== Return Value

value from the last invocation of `accessor`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *accessor*
| callable invoked on each attribute
|===


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