[#BloombergLP-bdlat_SequenceFunctions-hasAttribute-09c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_SequenceFunctions.adoc[bdlat&lowbar;SequenceFunctions]::hasAttribute
:relfileprefix: ../../
:mrdocs:

Return true if the specified `object` has an attribute with the specified `attributeName` of the specified `attributeNameLength`, and false otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
hasAttribute(
    TYPE const& object,
    char const* attributeName,
    int attributeNameLength);
----

== Return Value

`true` if `object` has the named attribute, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| sequence to query for the attribute
| *attributeName*
| name of the attribute to look up
| *attributeNameLength*
| length of `attributeName`
|===


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