[#BloombergLP-bslma-RawDeleterGuard-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/RawDeleterGuard.adoc[RawDeleterGuard]::RawDeleterGuard :relfileprefix: ../../../ :mrdocs: Create a raw deleter guard that manages the specified object. == Synopsis Declared in `<bslma_rawdeleterguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- RawDeleterGuard( TYPE* object, ALLOCATOR* allocator); ---- == Description Create a raw deleter guard that unconditionally manages the specified `object`, and that uses the specified `allocator` to delete `object` upon the destruction of this guard. The behavior is undefined unless `object` and `allocator` are non‐zero, and `allocator` supplied the memory for `object`. Note that `allocator` must remain valid throughout the lifetime of this guard. == Parameters [cols="1,4"] |=== | Name| Description | *object* | The address of the object to manage. | *allocator* | The allocator used to delete the managed object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#