This class implements a guard that unconditionally destroys a managed object upon destruction by invoking the (managed) object's destructor.

Synopsis

Declared in <bslma_destructorguard.h>

template<class TYPE>
class DestructorGuard;

Member Functions

Name

Description

DestructorGuard [constructor]

Create a destructor guard that manages the specified object.

~DestructorGuard [destructor]

Destroy this destructor guard and the object it manages by invoking the destructor of the (managed) object.

Created with MrDocs