BloombergLP::ball::AttributeContext::hasAttribute

Return whether an attribute with the specified value exists in this context.

Synopsis

Declared in <ball_attributecontext.h>

bool
hasAttribute(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

NameDescription
valueattribute value to search for