This class implements a guard that unconditionally deletes a managed object upon destruction by first invoking the object's destructor, and then invoking the deallocate method of an allocator (or pool) of parameterized ALLOCATOR type supplied to it at construction. The managed object of parameterized TYPE must have been created using memory provided by this allocator (or pool), which must remain valid throughout the lifetime of the guard object.
Synopsis
Declared in <bslma_rawdeleterguard.h>
template<
class TYPE,
class ALLOCATOR>
class RawDeleterGuard;
Member Functions
Name |
Description |
|
Create a raw deleter guard that unconditionally manages the specified |
|
Destroy this raw deleter guard and delete the object it manages by first invoking the destructor of the (managed) object, and then invoking the |
Created with MrDocs