[#BloombergLP-bdlb-ScopeExit-0e-2destructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit]::&#126;ScopeExit
:relfileprefix: ../../../
:mrdocs:

Destroy this object&period; Execute the exit function unless `release()` has been called on this object&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;scopeexit&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&#126;ScopeExit();
----


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