##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# ATOMIC_FLAG_INIT

From cppreference.com
< c‎ | atomic

Defined in header `<stdatomic.h>` |  |
#define ATOMIC_FLAG_INIT /* unspecified */ |  | (since C11)

Expands to an expression that can be used to initialize atomic_flag type. The value `atomic_flag` that is not initialized using this macro is undefined.

### [edit] References

- C11 standard (ISO/IEC 9899:2011):

  - 7.17.1/3 ATOMIC_FLAG_INIT (p: 273)

  - 7.17.8/4 ATOMIC_FLAG_INIT (p: 285)

### [edit] See also

ATOMIC_VAR_INIT (C11) | initializes a new atomic object (function macro) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/atomic/ATOMIC_FLAG_INIT&oldid=77534"