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

Synopsis

Declared in <bdlc_compactedarray.h>

template<class TYPE>
class CompactedArray_RemoveAllProctor;

Member Functions

Name

Description

CompactedArray_RemoveAllProctor [constructor]

Create a removeAll proctor that conditionally manages the specified array (if non‐zero).

~CompactedArray_RemoveAllProctor [destructor]

Destroy this object and, if release has not been invoked, invoke the managed array's removeAll method.

release

Release from management the array currently managed by this proctor. If no array, this method has no effect.

Created with MrDocs