BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls_bslonce.h File Reference
#include <bsls_ident.h>
#include <bsls_atomicoperations.h>

Go to the source code of this file.

Classes

struct  bsls::BslOnce
 
class  bsls::BslOnceGuard
 

Macros

#define BSLS_BSLONCE_ASSERT_SAFE(x)
 
#define BSLS_BSLONCE_INITIALIZER   { { 0xdead } }
 

Detailed Description

The content of this file has been pre-processed for Doxygen.

Macro Definition Documentation

◆ BSLS_BSLONCE_INITIALIZER

#define BSLS_BSLONCE_INITIALIZER   { { 0xdead } }

Use this macro to initialize an object of type bsls::Once. E.g.:

bsls::Once once = BSLS_BSLONCE_INITIALIZER;
#define BSLS_BSLONCE_INITIALIZER
Definition bsls_bslonce.h:143

Note that we use an unlikely arbitrary value to permit effectively asserting a BslOnce for correct initialization.