[#BloombergLP-bslmt-OnceGuard-2destructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/OnceGuard.adoc[OnceGuard]::~OnceGuard :relfileprefix: ../../../ :mrdocs: Destroy this object, completing in‐progress once work if needed. == Synopsis Declared in `<bslmt_once.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~OnceGuard(); ---- == Description If this object is not in an "in‐progress" state, do nothing. If this object is in an "in‐progress" state and is being destroyed in the course of normal processing, then call `leave` on the associated `Once` object. [.small]#Created with https://www.mrdocs.com[MrDocs]#