[#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&period;

== Synopsis

Declared in `&lt;bslma&lowbar;rawdeleterguard&period;h&gt;`

[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&period; The behavior is undefined unless `object` and `allocator` are non&hyphen;zero, and `allocator` supplied the memory for `object`&period; Note that `allocator` must remain valid throughout the lifetime of this guard&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| The address of the object to manage&period;
| *allocator*
| The allocator used to delete the managed object&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
