[#BloombergLP-bslmt-OnceGuard-2destructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/OnceGuard.adoc[OnceGuard]::&#126;OnceGuard
:relfileprefix: ../../../
:mrdocs:

Destroy this object, completing in&hyphen;progress once work if needed&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;once&period;h&gt;`

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

== Description

If this object is not in an &quot;in&hyphen;progress&quot; state, do nothing&period; If this object is in an &quot;in&hyphen;progress&quot; state and is being destroyed in the course of normal processing, then call `leave` on the associated `Once` object&period;


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