[#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 the specified `accessor` on the attribute of the specified `object` with the given `attributeId`, 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&lowbar;TYPE&amp; attribute, const t&lowbar;INFO&amp; info)&semi; &grave; Return non&hyphen;zero if the attribute is not found, and the value returned from the invocation of `accessor` otherwise&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 the specified `accessor` on the (non&hyphen;modifiable) attribute of the specified `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&lowbar;TYPE&amp; attribute, 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;


[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;_]#


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