|
BDE 4.39.x Production Release
|
#include <bslma_destructorguard.h>
This class implements a guard that unconditionally destroys a managed object upon destruction by invoking the (managed) object's destructor.
Public Member Functions | |
| DestructorGuard (TYPE *object) | |
| ~DestructorGuard () | |
|
inlineexplicit |
Create a destructor guard that unconditionally manages the specified object, and invokes the destructor of object upon the destruction of this guard.
object is non-zero.
|
inline |
Destroy this destructor guard and the object it manages by invoking the destructor of the (managed) object.