[#BloombergLP-ball-AttributeContext-hasAttribute] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]::hasAttribute :relfileprefix: ../../../ :mrdocs: Return `true` if an attribute having the specified `value` exists in any of the attribute containers maintained by this object, and `false` otherwise. Note that this method can be invoked safely even if the `initialize` class method has not yet been called. == Synopsis Declared in `<ball_attributecontext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasAttribute(xref:BloombergLP/ball/Attribute.adoc[Attribute] const& value) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#