This class provides a guard for managing a BslOnce for the purpose of executing a block of code (only) once.
Synopsis
Declared in <bsls_bslonce.h>
class BslOnceGuard;
Member Functions
Name |
Description |
|
Create a guard to manage a block of code that is executed once. |
|
Destroy this guard, and if |
Enter the one‐time block of code that is managed by the specified |
|
Exit the one‐time block of code. The behavior is undefined unless the caller had previously called |
Created with MrDocs