[#BloombergLP-bdlat_SequenceFunctions-accessAttribute-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_SequenceFunctions.adoc[bdlat&lowbar;SequenceFunctions]::accessAttribute
:relfileprefix: ../../
:mrdocs:

`accessAttribute` overloads

== Synopses

Declared in `&lt;bdlat&lowbar;sequencefunctions&period;h&gt;`

Invoke an accessor on a sequence attribute identified by id&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class ACCESSOR&gt;
int
xref:BloombergLP/bdlat_SequenceFunctions/accessAttribute-08.adoc[accessAttribute](
    TYPE const& object,
    ACCESSOR& accessor,
    int attributeId);
----

[.small]#xref:BloombergLP/bdlat_SequenceFunctions/accessAttribute-08.adoc[_» more&period;&period;&period;_]#

Invoke an accessor on a sequence attribute identified by name&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class ACCESSOR&gt;
int
xref:BloombergLP/bdlat_SequenceFunctions/accessAttribute-0c.adoc[accessAttribute](
    TYPE const& object,
    ACCESSOR& accessor,
    char const* attributeName,
    int attributeNameLength);
----

[.small]#xref:BloombergLP/bdlat_SequenceFunctions/accessAttribute-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

non&hyphen;zero if the attribute is not found, and the value from `accessor` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| sequence whose attribute is accessed
| *accessor*
| callable invoked with the attribute and its info
| *attributeId*
| id of the attribute to access
| *attributeName*
| name of the attribute to access
| *attributeNameLength*
| length of `attributeName`
|===


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