[#BloombergLP-bdlc-CompactedArray_RemoveAllProctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::CompactedArray&lowbar;RemoveAllProctor
:relfileprefix: ../../
:mrdocs:

This class implements a proctor that, unless its `release` method has previously been invoked, automatically invokes `removeAll` on a `CompactedArray` upon destruction&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;compactedarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
class CompactedArray&lowbar;RemoveAllProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/CompactedArray_RemoveAllProctor/2constructor.adoc[`CompactedArray&lowbar;RemoveAllProctor`]         [.small]#[constructor]#
| Create a `removeAll` proctor that conditionally manages the specified `array` (if non&hyphen;zero)&period;
| xref:BloombergLP/bdlc/CompactedArray_RemoveAllProctor/2destructor.adoc[`&#126;CompactedArray&lowbar;RemoveAllProctor`] [.small]#[destructor]#
| Destroy this object and, if `release` has not been invoked, invoke the managed array&apos;s `removeAll` method&period;
| xref:BloombergLP/bdlc/CompactedArray_RemoveAllProctor/release.adoc[`release`] 
| Release from management the array currently managed by this proctor&period; If no array, this method has no effect&period;
|===



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