[#BloombergLP-bsls-BslOnceGuard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/BslOnceGuard.adoc[BslOnceGuard]::BslOnceGuard
:relfileprefix: ../../../
:mrdocs:

Create a guard to manage a block of code that is executed once&period;

== Synopsis

Declared in `&lt;bsls&lowbar;bslonce&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BslOnceGuard();
----


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