Objects of this type are used to distinguish calls to call_once() and ensure the provided function is only invoked once across all threads. This type is not copyable or movable. However, it has a constexpr constructor, and is safe to use as a namespace‐scoped global variable.
Synopsis
Declared in <absl/base/call_once.h>
class once_flag;
Member Functions
Name |
Description |
|
Constructors |
|
Deleted: |
Non-Member Functions
Name |
Description |
For all invocations using a given |
Created with MrDocs