[#BloombergLP-bdlat_SequenceFunctions-accessAttribute-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_SequenceFunctions.adoc[bdlat_SequenceFunctions]::accessAttribute :relfileprefix: ../../ :mrdocs: `accessAttribute` overloads == Synopses Declared in `<bdlat_sequencefunctions.h>` Invoke an accessor on a sequence attribute identified by id. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class ACCESSOR> 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..._]# Invoke an accessor on a sequence attribute identified by name. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class ACCESSOR> 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..._]# == Return Value non‐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]#