Proctor that conditionally manages and deletes an object.
Declared in <bslma_rawdeleterproctor.h>
template<
class TYPE,
class ALLOCATOR>
class RawDeleterProctor;
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.
| Name | Description |
|---|---|
RawDeleterProctor [constructor] | Create a raw deleter proctor that conditionally manages an object. |
~RawDeleterProctor [destructor] | Destroy this proctor and delete any managed object. |
release | Release from management the object currently managed by this proctor. If no object is currently being managed, this method has no effect. |
reset | Set the object managed by this proctor. |