[#BloombergLP-bslma-DestructorGuard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/DestructorGuard.adoc[DestructorGuard]::DestructorGuard
:relfileprefix: ../../../
:mrdocs:

Create a destructor guard that manages the specified `object`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
DestructorGuard(TYPE* object);
----

== Description

Create a destructor guard that unconditionally manages the specified `object`, and invokes the destructor of `object` upon the destruction of this guard&period; The behavior is undefined unless `object` is non&hyphen;zero&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| Address of the object to manage&period;
|===


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