[#BloombergLP-ball-ScopedAttribute_Container] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::ScopedAttribute_Container :relfileprefix: ../../ :mrdocs: This component‐private class is a concrete implementation of the `AttributeContainer` protocol for a single attribute. == Synopsis Declared in `<ball_scopedattribute.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ScopedAttribute_Container : public xref:BloombergLP/ball/AttributeContainer.adoc[AttributeContainer] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/ball/AttributeContainer.adoc[AttributeContainer]` | This class defines a protocol for a container of attribute values. The attribute container provides a `hasValue()` method to determine whether an attribute value is in the container. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ScopedAttribute_Container/allocator_type.adoc[`allocator_type`] | `allocator_type` is an alias for the type of allocator used by this class. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ScopedAttribute_Container/2constructor-01.adoc[`ScopedAttribute_Container`] [.small]#[constructor]# | Constructors | xref:BloombergLP/ball/ScopedAttribute_Container/2destructor.adoc[`~ScopedAttribute_Container`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this object. | xref:BloombergLP/ball/ScopedAttribute_Container/get_allocator.adoc[`get_allocator`] | Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. | xref:BloombergLP/ball/ScopedAttribute_Container/hasValue-0c.adoc[`hasValue`] | `hasValue` overloads | xref:BloombergLP/ball/ScopedAttribute_Container/print.adoc[`print`] [.small]#[virtual]# | Format this object to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to `stream`. If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects. If `level` is negative, suppress indentation of the first line. If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`). If `stream` is not valid on entry, this operation has no effect. | xref:BloombergLP/ball/ScopedAttribute_Container/visitAttributes-01.adoc[`visitAttributes`] | Invoke the specified `visitor` function for all attributes in this container. | xref:BloombergLP/ball/ScopedAttribute_Container/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<ScopedAttribute_Container, UsesBslmaAllocator>`] | Declare that this type uses a `bslma` allocator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#