[#BloombergLP-bslma-RawDeleterProctor-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/RawDeleterProctor.adoc[RawDeleterProctor]::RawDeleterProctor :relfileprefix: ../../../ :mrdocs: Create a raw deleter proctor that conditionally manages an object. == Synopsis Declared in `<bslma_rawdeleterproctor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- RawDeleterProctor( TYPE* object, ALLOCATOR* allocator); ---- == Description Create a raw deleter proctor that conditionally manages the specified `object` (if non‐zero), and that uses the specified `allocator` to delete the object managed by this proctor (if not released ‐‐ see `release`) upon destruction. The behavior is undefined unless `allocator` is non‐zero and supplied the memory for `object` (if non‐zero). Note that `allocator` must remain valid throughout the lifetime of this proctor. == Parameters [cols="1,4"] |=== | Name| Description | *object* | Object to manage, or 0 for none. | *allocator* | Allocator (or pool) used to delete the managed object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#