[#BloombergLP-ball-ScopedAttributes] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::ScopedAttributes :relfileprefix: ../../ :mrdocs: This class installs a `AttributeContainer` object in the current attribute context on construction, and removes it on destruction. Note that the `AttributeContainer` supplied at construction must remain valid and *unmodified* for the lifetime of this object. == Synopsis Declared in `<ball_scopedattributes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ScopedAttributes; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ScopedAttributes/2constructor.adoc[`ScopedAttributes`] [.small]#[constructor]# | Create a `ScopedAttributes` object having the specified `attributes`. Note that `attributes` must remain valid and *unmodified* for the lifetime of this object. | xref:BloombergLP/ball/ScopedAttributes/2destructor.adoc[`~ScopedAttributes`] [.small]#[destructor]# | Remove the associated attributes from the current attribute context. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#