This class provides a specialized proctor object that, upon destruction and unless the release method is called, destroys the guarded object of the parameterized OBJECT_TYPE.
Synopsis
Declared in <bslalg_autoscalardestructor.h>
template<class OBJECT_TYPE>
class AutoScalarDestructor;
Member Functions
Name |
Description |
|
Create a guard object, proctoring the specified |
|
Call the destructor on the object of the parameterized |
Set the address of the object proctored by this guard object to 0, thereby releasing from management the object currently managed by this proctor, if any. |
|
Set this guard object to manage the specified |
Created with MrDocs