[#BloombergLP-bslalg-AutoScalarDestructor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/AutoScalarDestructor.adoc[AutoScalarDestructor]::AutoScalarDestructor
:relfileprefix: ../../../
:mrdocs:

Create a guard object, proctoring the specified `object` of the parameterized `OBJECT&lowbar;TYPE` (if non&hyphen;zero), that will invoke the destructor of `object` upon destruction&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;autoscalardestructor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
AutoScalarDestructor(OBJECT&lowbar;TYPE* object);
----


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