[#BloombergLP-ball-ScopedAttribute_Container-hasValue-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ScopedAttribute_Container.adoc[ScopedAttribute_Container]::hasValue :relfileprefix: ../../../ :mrdocs: `hasValue` overloads == Synopses Declared in `<ball_attributecontainer.h>` Return `true` if the specified `attribute` is the same as the value held in this container, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool xref:BloombergLP/ball/ScopedAttribute_Container/hasValue-05.adoc[hasValue](xref:BloombergLP/ball/Attribute.adoc[Attribute] const& attribute) const override; ---- [.small]#xref:BloombergLP/ball/ScopedAttribute_Container/hasValue-05.adoc[_» more..._]# Return `true` if a attribute having the specified `value` exists in this object, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool xref:BloombergLP/ball/AttributeContainer/hasValue.adoc[hasValue](xref:BloombergLP/ball/Attribute.adoc[Attribute] const& value) const = 0; ---- [.small]#xref:BloombergLP/ball/AttributeContainer/hasValue.adoc[_» more..._]# == Return Value * `true` if `attribute` matches the held value, and `false` otherwise * `true` if an attribute having `value` exists in this object, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *attribute* | attribute to compare | *value* | attribute value to look up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#