[#BloombergLP-ball-AttributeContext-hasAttribute] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]::hasAttribute :relfileprefix: ../../../ :mrdocs: Return whether an attribute with the specified `value` exists in this context. == Synopsis Declared in `<ball_attributecontext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasAttribute(xref:BloombergLP/ball/Attribute.adoc[Attribute] const& value) const; ---- == Description 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. == Return Value `true` if `value` exists in this context, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *value* | attribute value to search for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#