This class implements a range proctor that destroys managed objects.
Synopsis
Declared in <bslma_autodestructor.h>
template<class TYPE>
class AutoDestructor;
Description
This class implements a range proctor that, unless its release method has previously been invoked, automatically destroys the contiguous sequence of managed objects upon its own destruction by invoking each object's destructor. If release is invoked (see release), the proctor will not destroy any objects upon its own destruction (unless reset is invoked to assign the proctor another contiguous sequence of objects for management). Note that when the length of this object is non‐zero, it must refer to a non‐null array of objects.
Member Functions
Name |
Description |
|
Create a range proctor to manage an array of objects. |
|
Destroy this range proctor and the objects it manages. |
Return the (signed) length of the sequence of objects managed by this range proctor. |
|
Increase by one the (signed) length of the managed object sequence. |
|
Decrease by one the (signed) length of the managed object sequence. |
|
Release from management the sequence of objects managed by this proctor. |
|
Set the origin of the sequence of objects managed by this proctor. |
|
Set the (signed) length of the managed object sequence. |
Created with MrDocs