Standard library header <stdatomic.h> (C++23) (original) (raw)
It is unspecified whether <stdatomic.h> provides any declarations in namespace std.
Contents
Macros
(C++23)
compatibility macro such that _Atomic(T) is identical to std::atomic<T>
(function macro) [edit]
(C++11)
initializes an std::atomic_flag to false
(macro constant) [edit]
Types
(C++11)
the lock-free boolean atomic type
(class) [edit]
(C++11)
defines memory ordering constraints for the given atomic operation
(enum) [edit]
(C++11)
std::atomic<bool>
(typedef) [edit]
(C++11)
std::atomic<char>
(typedef) [edit]
(C++11)
std::atomic<signed char>
(typedef) [edit]
(C++11)
std::atomic<unsigned char>
(typedef) [edit]
(C++11)
std::atomic<short>
(typedef) [edit]
(C++11)
std::atomic<unsigned short>
(typedef) [edit]
(C++11)
std::atomic<int>
(typedef) [edit]
(C++11)
std::atomic<unsigned int>
(typedef) [edit]
(C++11)
std::atomic<long>
(typedef) [edit]
(C++11)
std::atomic<unsigned long>
(typedef) [edit]
(C++11)
std::atomic<long long>
(typedef) [edit]
(C++11)
std::atomic<unsigned long long>
(typedef) [edit]
(C++20)
std::atomic<char8_t>
(typedef) [edit]
(C++11)
std::atomic<char16_t>
(typedef) [edit]
(C++11)
std::atomic<char32_t>
(typedef) [edit]
(C++11)
std::atomic<wchar_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::int8_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::uint8_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::int16_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::uint16_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::int32_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::uint32_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::int64_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::uint64_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_least8_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_least8_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_least16_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_least16_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_least32_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_least32_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_least64_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_least64_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_fast8_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_fast8_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_fast16_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_fast16_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_fast32_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_fast32_t>
(typedef) [edit]
(C++11)
std::atomic<std::int_fast64_t>
(typedef) [edit]
(C++11)
std::atomic<std::uint_fast64_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::intptr_t>
(typedef) [edit]
(C++11)(optional)
std::atomic<std::uintptr_t>
(typedef) [edit]
(C++11)
std::atomic<std::size_t>
(typedef) [edit]
(C++11)
std::atomic<std::ptrdiff_t>
(typedef) [edit]
(C++11)
std::atomic<std::intmax_t>
(typedef) [edit]
(C++11)
std::atomic<std::uintmax_t>
(typedef) [edit]
Functions
(C++11)
checks if the atomic type's operations are lock-free
(function template) [edit]
atomic_storeatomic_store_explicit
(C++11)(C++11)
atomically replaces the value of the atomic object with a non-atomic argument
(function template) [edit]
atomic_loadatomic_load_explicit
(C++11)(C++11)
atomically obtains the value stored in an atomic object
(function template) [edit]
atomic_exchangeatomic_exchange_explicit
(C++11)(C++11)
atomically replaces the value of the atomic object with non-atomic argument and returns the old value of the atomic
(function template) [edit]
(C++11)(C++11)(C++11)(C++11)
atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
(function template) [edit]
atomic_fetch_addatomic_fetch_add_explicit
(C++11)(C++11)
adds a non-atomic value to an atomic object and obtains the previous value of the atomic
(function template) [edit]
atomic_fetch_subatomic_fetch_sub_explicit
(C++11)(C++11)
subtracts a non-atomic value from an atomic object and obtains the previous value of the atomic
(function template) [edit]
atomic_fetch_andatomic_fetch_and_explicit
(C++11)(C++11)
replaces the atomic object with the result of bitwise AND with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
atomic_fetch_oratomic_fetch_or_explicit
(C++11)(C++11)
replaces the atomic object with the result of bitwise OR with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
atomic_fetch_xoratomic_fetch_xor_explicit
(C++11)(C++11)
replaces the atomic object with the result of bitwise XOR with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
atomic_flag_test_and_setatomic_flag_test_and_set_explicit
(C++11)(C++11)
atomically sets the flag to true and returns its previous value
(function) [edit]
atomic_flag_clearatomic_flag_clear_explicit
(C++11)(C++11)
atomically sets the value of the flag to false
(function) [edit]
(C++11)
generic memory order-dependent fence synchronization primitive
(function) [edit]
(C++11)
fence between a thread and a signal handler executed in the same thread
(function) [edit]