[#BloombergLP-ball-ScopedAttribute_Container-hasValue-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ScopedAttribute_Container.adoc[ScopedAttribute&lowbar;Container]::hasValue
:relfileprefix: ../../../
:mrdocs:

`hasValue` overloads

== Synopses

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

Return `true` if the specified `attribute` is the same as the value held in this container, and `false` otherwise&period;


[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&period;&period;&period;_]#

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


[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&period;&period;&period;_]#

== 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]#
