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