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

Proctor that destroys the current thread&apos;s attribute context on destruction&period;

== Synopsis

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

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

== Description

This class implements a proctor that, on its own destruction, will destroy the attribute context of the current thread&period; Attribute contexts are stored in thread&hyphen;local memory&period; On destruction, objects of this type will deallocate the current thread&apos;s attribute context (if one has been created), and set the thread&hyphen;local storage pointer to 0&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/AttributeContextProctor/2constructor-0e.adoc[`AttributeContextProctor`]         [.small]#[constructor]#
| Create an `AttributeContextProctor` object that will destroy the current attribute context on destruction&period;
| xref:BloombergLP/ball/AttributeContextProctor/2destructor.adoc[`&#126;AttributeContextProctor`] [.small]#[destructor]#
| Destroy this object (as well as the current attribute context)&period;
|===



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