[#BloombergLP-ball-ManagedAttribute]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::ManagedAttribute
:relfileprefix: ../../
:mrdocs:

A `ball&colon;&colon;ManagedAttribute` object contains a `ball&colon;&colon;Attribute` object and provides storage for the attribute&apos;s name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ManagedAttribute;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[`allocator&lowbar;type`] 
| This `typedef` is an alias for the allocator used by this object&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/ManagedAttribute/2constructor-0d1.adoc[`ManagedAttribute`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/ball/ManagedAttribute/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object, and return a non&hyphen;`const` reference to this object&period;
| xref:BloombergLP/ball/ManagedAttribute/attribute.adoc[`attribute`] 
| Return a `const` reference to the attribute of this object&period;
| xref:BloombergLP/ball/ManagedAttribute/get_allocator.adoc[`get&lowbar;allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/ball/ManagedAttribute/key.adoc[`key`] 
| Return a `const` reference to the attribute name of this object&period;
| xref:BloombergLP/ball/ManagedAttribute/name.adoc[`name`] 
| Return the attribute name of this object&period; Note that this accessor should not be used to get the attribute name if the name string contains embedded zeros&period;
| xref:BloombergLP/ball/ManagedAttribute/print.adoc[`print`] 
| Format this object to the specified output stream&period;
| xref:BloombergLP/ball/ManagedAttribute/setName.adoc[`setName`] 
| Set the attribute name of this object to the specified `name`&period;
| xref:BloombergLP/ball/ManagedAttribute/setValue-059.adoc[`setValue`] 
| `setValue` overloads
| xref:BloombergLP/ball/ManagedAttribute/value.adoc[`value`] 
| Return a `const` reference to the attribute value of this object&period;
| xref:BloombergLP/ball/ManagedAttribute/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;ManagedAttribute, UsesBslmaAllocator&gt;`] 
| Declare that this type uses a `bslma` allocator&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/ManagedAttribute/hash.adoc[`hash`] 
| Return a hash value calculated from the specified `attribute` using the specified `size` as the number of slots&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/ball/operator_lshift-0a7.adoc[BloombergLP::ball::operator&lt;&lt;]`
| Write the value of the specified `attribute` to the specified `output` stream&period; Return the specified `output` stream&period;
| `xref:BloombergLP/ball/operator_not_eq-00.adoc[BloombergLP::ball::operator!&equals;]`
| Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise&period;
| `xref:BloombergLP/ball/operator_eq-008.adoc[BloombergLP::ball::operator&equals;&equals;]`
| Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/operator_not_eq-0e.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise&period;
| xref:BloombergLP/ball/operator_eq-08e7.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period;
|===


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