[#BloombergLP-ball-DefaultAttributeContainer-addAttribute] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/DefaultAttributeContainer.adoc[DefaultAttributeContainer]::addAttribute :relfileprefix: ../../../ :mrdocs: Add an attribute having the specified `value` to this object. Return `true` on success and `false` if an attribute having the same `value` already exists in this object. == Synopsis Declared in `<ball_defaultattributecontainer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool addAttribute(xref:BloombergLP/ball/Attribute.adoc[Attribute] const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#