[#BloombergLP-ball-Rule-hasAttribute]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Rule.adoc[Rule]::hasAttribute
:relfileprefix: ../../../
:mrdocs:

Return `true` if an attribute having specified `value` exists in this object, and `false` otherwise&period;

== Synopsis

Declared in `&lt;ball&lowbar;rule&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
hasAttribute(xref:BloombergLP/ball/ManagedAttribute.adoc[ManagedAttribute] const& value) const;
----


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