flag clear") (C++11)  (C++11)  |  atomically sets the value of the flag to  false    
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_clear&action=edit)  
[ atomic_flag_test  atomic_flag_test_explicit  ](/w/cpp/atomic/atomic_flag_test "cpp/atomic/atomic flag test") (C++20)  (C++20)  |  atomically returns the value of the flag   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_test&action=edit)  
[ atomic_flag_wait  atomic_flag_wait_explicit  ](/w/cpp/atomic/atomic_flag_wait "cpp/atomic/atomic flag wait") (C++20)  (C++20)  |  blocks the thread until notified and the flag changes   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_wait&action=edit)  
[ atomic_flag_notify_one  ](/w/cpp/atomic/atomic_flag_notify_one "cpp/atomic/atomic flag notify one") (C++20)  |  notifies a thread blocked in atomic_flag_wait   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_notify_one&action=edit)  
[ atomic_flag_notify_all  ](/w/cpp/atomic/atomic_flag_notify_all "cpp/atomic/atomic flag notify all") (C++20)  |  notifies all threads blocked in atomic_flag_wait   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_flag_notify_all&action=edit)  
  
#####  Initialization  
  
[ atomic_init  ](/w/cpp/atomic/atomic_init "cpp/atomic/atomic init") (C++11)  (deprecated in C++20)  |  non-atomic initialization of a default-constructed atomic object   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_init&action=edit)  
[ ATOMIC_VAR_INIT  ](/w/cpp/atomic/ATOMIC_VAR_INIT "cpp/atomic/ATOMIC VAR INIT") (C++11)  (deprecated in C++20)  |  constant initialization of an atomic variable of static storage duration   
(function macro)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_ATOMIC_VAR_INIT&action=edit)  
[ ATOMIC_FLAG_INIT  ](/w/cpp/atomic/ATOMIC_FLAG_INIT "cpp/atomic/ATOMIC FLAG INIT") (C++11)  |  initializes an  [ std::atomic_flag ](/w/cpp/atomic/atomic_flag "cpp/atomic/atomic flag") to  false    
(macro constant)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_ATOMIC_FLAG_INIT&action=edit)  
  
#####  Memory synchronization ordering  
  
[ memory_order  ](/w/cpp/atomic/memory_order "cpp/atomic/memory order") (C++11)  |  defines memory ordering constraints for the given atomic operation   
(enum)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_memory_order&action=edit)  
[ kill_dependency  ](/w/cpp/atomic/kill_dependency "cpp/atomic/kill dependency") (C++11)  |  removes the specified object from the  [ std::memory_order_consume ](/w/cpp/atomic/memory_order "cpp/atomic/memory order") dependency tree   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_kill_dependency&action=edit)  
[ atomic_thread_fence  ](/w/cpp/atomic/atomic_thread_fence "cpp/atomic/atomic thread fence") (C++11)  |  generic memory order-dependent fence synchronization primitive   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_thread_fence&action=edit)  
[ atomic_signal_fence  ](/w/cpp/atomic/atomic_signal_fence "cpp/atomic/atomic signal fence") (C++11)  |  fence between a thread and a signal handler executed in the same thread   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/atomic/dsc_atomic_signal_fence&action=edit)  
Defined in header ` [ <stdatomic.h> ](/w/cpp/header/stdatomic.h
"cpp/header/stdatomic.h") `  
  
#####  C compatibility macros  
  
[ _Atomic  ](/w/cpp/atomic/atomic "cpp/atomic/atomic") (C++23)  |  compatibility macro such that  _Atomic  (  T  )  is identic