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

This class provides a scoped guard that installs an `AttributeContainer` in the current attribute context&period;

== Synopsis

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

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

== Description

This class installs a `AttributeContainer` object in the current attribute context on construction, and removes it on destruction&period; Note that the `AttributeContainer` supplied at construction must remain valid and *unmodified* for the lifetime of this object&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/ScopedAttributes/2constructor.adoc[`ScopedAttributes`]         [.small]#[constructor]#
| Create a `ScopedAttributes` object having the specified `attributes`&period; Note that `attributes` must remain valid and *unmodified* for the lifetime of this object&period;
| xref:BloombergLP/ball/ScopedAttributes/2destructor.adoc[`&#126;ScopedAttributes`] [.small]#[destructor]#
| Remove the associated attributes from the current attribute context&period;
|===



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