Documentation Home >> Headers >> <atomic> Header >> std::atomic_xxx typedefs

For compatibility with the forthcoming C Standard, typedefs for the atomic integral types are provided. These are either typedefs to the corresponding std::atomic<T> specialization, or a base class of that specialization with the same interface.

Table 1. Atomic typedefs and their corresponding std::atomic<> specializations

std::atomic_itype

std::atomic<> specialization

std::atomic_char

std::atomic<char>

std::atomic_schar

std::atomic<signed char>

std::atomic_uchar

std::atomic<unsigned char>

std::atomic_short

std::atomic<short>

std::atomic_ushort

std::atomic<unsigned short>

std::atomic_int

std::atomic<int>

std::atomic_uint

std::atomic<unsigned int>

std::atomic_long

std::atomic<long>

std::atomic_ulong

std::atomic<unsigned long>

std::atomic_llong

std::atomic<long long>

std::atomic_ullong

std::atomic<unsigned long long>

std::atomic_wchar_t

std::atomic<wchar_t>

std::atomic_char16_t

std::atomic<char16_t>

std::atomic_char32_t

std::atomic<char32_t>


Header

#include <atomic>

See Also