This class implements a proctor that, unless its release method has previously been invoked, automatically 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 proctor object.
Synopsis
Declared in <bslma_rawdeleterproctor.h>
template<
class TYPE,
class ALLOCATOR>
class RawDeleterProctor;
Member Functions
Name |
Description |
|
Create a raw deleter proctor that conditionally manages the specified |
|
Destroy this raw deleter proctor, and delete the object it manages (if any) by first invoking the destructor of the (managed) object, and then invoking the |
Release from management the object currently managed by this proctor. If no object is currently being managed, this method has no effect. |
|
Set the specified |
Created with MrDocs