[#BloombergLP-bslma-RawDeleterProctor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::RawDeleterProctor :relfileprefix: ../../ :mrdocs: Proctor that conditionally manages and deletes an object. == Synopsis Declared in `<bslma_rawdeleterproctor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class ALLOCATOR> class RawDeleterProctor; ---- == Description 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. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/RawDeleterProctor/2constructor.adoc[`RawDeleterProctor`] [.small]#[constructor]# | Create a raw deleter proctor that conditionally manages an object. | xref:BloombergLP/bslma/RawDeleterProctor/2destructor.adoc[`~RawDeleterProctor`] [.small]#[destructor]# | Destroy this proctor and delete any managed object. | xref:BloombergLP/bslma/RawDeleterProctor/release.adoc[`release`] | Release from management the object currently managed by this proctor. If no object is currently being managed, this method has no effect. | xref:BloombergLP/bslma/RawDeleterProctor/reset.adoc[`reset`] | Set the object managed by this proctor. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#