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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
addAttribute(xref:BloombergLP/ball/Attribute.adoc[Attribute] const& value);
----

== Description

Return `true` on success and `false` if an attribute having the same `value` already exists in this object&period;

== Return Value

`true` on success, and `false` if `value` already exists

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| attribute to add
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
