名前空間
変種
操作

標準ライブラリヘッダー <stdatomic.h>

From cppreference.com
 
 
標準ライブラリヘッダー
 

このヘッダーは元々C標準ライブラリにありました。

このヘッダーは並行性サポートライブラリの一部です。

<stdatomic.h> が名前空間 std に宣言を提供するかどうかは未規定です。

目次

マクロ

(C++23)
_Atomic(T)std::atomic<T> と同一である互換性マクロ
(関数マクロ) [編集]
std::atomic_flagfalse に初期化する
(macro constant) [編集]

ロックフリーなブール型アトミック型
(クラス) [編集]
与えられたアトミック操作に対するメモリ順序制約を定義する
(enum) [編集]
std::atomic<bool>
(typedef) [編集]
std::atomic<char>
(typedef) [編集]
std::atomic<signed char>
(typedef) [編集]
std::atomic<unsigned char>
(typedef) [編集]
std::atomic<short>
(typedef) [編集]
std::atomic<unsigned short>
(typedef) [編集]
std::atomic<int>
(typedef) [編集]
std::atomic<unsigned int>
(typedef) [編集]
std::atomic<long>
(typedef) [編集]
std::atomic<unsigned long>
(typedef) [編集]
std::atomic<long long>
(typedef) [編集]
std::atomic<unsigned long long>
(typedef) [編集]
std::atomic<char8_t>
(typedef) [編集]
std::atomic<char16_t>
(typedef) [編集]
std::atomic<char32_t>
(typedef) [編集]
std::atomic<wchar_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::int8_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::uint8_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::int16_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::uint16_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::int32_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::uint32_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::int64_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::uint64_t>
(typedef) [編集]
std::atomic<std::int_least8_t>
(typedef) [編集]
std::atomic<std::uint_least8_t>
(typedef) [編集]
std::atomic<std::int_least16_t>
(typedef) [編集]
std::atomic<std::uint_least16_t>
(typedef) [編集]
std::atomic<std::int_least32_t>
(typedef) [編集]
std::atomic<std::uint_least32_t>
(typedef) [編集]
std::atomic<std::int_least64_t>
(typedef) [編集]
std::atomic<std::uint_least64_t>
(typedef) [編集]
std::atomic<std::int_fast8_t>
(typedef) [編集]
std::atomic<std::uint_fast8_t>
(typedef) [編集]
std::atomic<std::int_fast16_t>
(typedef) [編集]
std::atomic<std::uint_fast16_t>
(typedef) [編集]
std::atomic<std::int_fast32_t>
(typedef) [編集]
std::atomic<std::uint_fast32_t>
(typedef) [編集]
std::atomic<std::int_fast64_t>
(typedef) [編集]
std::atomic<std::uint_fast64_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::intptr_t>
(typedef) [編集]
(C++11)(任意)
std::atomic<std::uintptr_t>
(typedef) [編集]
std::atomic<std::size_t>
(typedef) [編集]
std::atomic<std::ptrdiff_t>
(typedef) [編集]
std::atomic<std::intmax_t>
(typedef) [編集]
std::atomic<std::uintmax_t>
(typedef) [編集]

関数

アトミック型の操作がロックフリーであるかを確認する
(関数テンプレート) [編集]
アトミックオブジェクトの値を非アトミックな引数でアトミックに置き換える
(関数テンプレート) [編集]
アトミックオブジェクトに格納されている値をアトミックに取得する
(関数テンプレート) [編集]
アトミックオブジェクトの値を非アトミックな引数でアトミックに置き換え、アトミックオブジェクトの古い値を返す
(関数テンプレート) [編集]
アトミックオブジェクトの値と非アトミックな引数をアトミックに比較し、等しければアトミック交換を、そうでなければアトミックロードを実行する
(関数テンプレート) [編集]
アトミックオブジェクトに非アトミックな値を加算し、アトミックオブジェクトの以前の値を取得する
(関数テンプレート) [編集]
アトミックオブジェクトから非アトミックな値を減算し、アトミックオブジェクトの以前の値を取得する
(関数テンプレート) [編集]
アトミックオブジェクトを非アトミックな引数とのビット単位ANDの結果で置き換え、アトミックオブジェクトの以前の値を取得する
(関数テンプレート) [編集]
アトミックオブジェクトを非アトミックな引数とのビット単位ORの結果で置き換え、アトミックオブジェクトの以前の値を取得する
(関数テンプレート) [編集]
アトミックオブジェクトを非アトミックな引数とのビット単位XORの結果で置き換え、アトミックオブジェクトの以前の値を取得する
(関数テンプレート) [編集]
フラグをアトミックにtrueに設定し、以前の値を返す
(function) [編集]
フラグの値をアトミックにfalseに設定する
(function) [編集]
汎用的なメモリ順序依存のフェンス同期プリミティブ
(関数) [編集]
スレッドと、同じスレッドで実行されるシグナルハンドラとの間のフェンス
(関数) [編集]

[編集] 概要

template<class T>
  using __std_atomic = std::atomic<T>;        // exposition only
 
#define _Atomic(T) __std_atomic<T>
 
#define ATOMIC_BOOL_LOCK_FREE /* see description */
#define ATOMIC_CHAR_LOCK_FREE /* see description */
#define ATOMIC_CHAR16_T_LOCK_FREE /* see description */
#define ATOMIC_CHAR32_T_LOCK_FREE /* see description */
#define ATOMIC_WCHAR_T_LOCK_FREE /* see description */
#define ATOMIC_SHORT_LOCK_FREE /* see description */
#define ATOMIC_INT_LOCK_FREE /* see description */
#define ATOMIC_LONG_LOCK_FREE /* see description */
#define ATOMIC_LLONG_LOCK_FREE /* see description */
#define ATOMIC_POINTER_LOCK_FREE /* see description */
 
using std::memory_order;                // see description
using std::memory_order_relaxed;        // see description
using std::memory_order_consume;        // see description
using std::memory_order_acquire;        // see description
using std::memory_order_release;        // see description
using std::memory_order_acq_rel;        // see description
using std::memory_order_seq_cst;        // see description
 
using std::atomic_flag;                 // see description
 
using std::atomic_bool;                 // see description
using std::atomic_char;                 // see description
using std::atomic_schar;                // see description
using std::atomic_uchar;                // see description
using std::atomic_short;                // see description
using std::atomic_ushort;               // see description
using std::atomic_int;                  // see description
using std::atomic_uint;                 // see description
using std::atomic_long;                 // see description
using std::atomic_ulong;                // see description
using std::atomic_llong;                // see description
using std::atomic_ullong;               // see description
using std::atomic_char8_t;              // see description
using std::atomic_char16_t;             // see description
using std::atomic_char32_t;             // see description
using std::atomic_wchar_t;              // see description
using std::atomic_int8_t;               // see description
using std::atomic_uint8_t;              // see description
using std::atomic_int16_t;              // see description
using std::atomic_uint16_t;             // see description
using std::atomic_int32_t;              // see description
using std::atomic_uint32_t;             // see description
using std::atomic_int64_t;              // see description
using std::atomic_uint64_t;             // see description
using std::atomic_int_least8_t;         // see description
using std::atomic_uint_least8_t;        // see description
using std::atomic_int_least16_t;        // see description
using std::atomic_uint_least16_t;       // see description
using std::atomic_int_least32_t;        // see description
using std::atomic_uint_least32_t;       // see description
using std::atomic_int_least64_t;        // see description
using std::atomic_uint_least64_t;       // see description
using std::atomic_int_fast8_t;          // see description
using std::atomic_uint_fast8_t;         // see description
using std::atomic_int_fast16_t;         // see description
using std::atomic_uint_fast16_t;        // see description
using std::atomic_int_fast32_t;         // see description
using std::atomic_uint_fast32_t;        // see description
using std::atomic_int_fast64_t;         // see description
using std::atomic_uint_fast64_t;        // see description
using std::atomic_intptr_t;             // see description
using std::atomic_uintptr_t;            // see description
using std::atomic_size_t;               // see description
using std::atomic_ptrdiff_t;            // see description
using std::atomic_intmax_t;             // see description
using std::atomic_uintmax_t;            // see description
 
using std::atomic_is_lock_free;                         // see description
using std::atomic_load;                                 // see description
using std::atomic_load_explicit;                        // see description
using std::atomic_store;                                // see description
using std::atomic_store_explicit;                       // see description
using std::atomic_exchange;                             // see description
using std::atomic_exchange_explicit;                    // see description
using std::atomic_compare_exchange_strong;              // see description
using std::atomic_compare_exchange_strong_explicit;     // see description
using std::atomic_compare_exchange_weak;                // see description
using std::atomic_compare_exchange_weak_explicit;       // see description
using std::atomic_fetch_add;                            // see description
using std::atomic_fetch_add_explicit;                   // see description
using std::atomic_fetch_sub;                            // see description
using std::atomic_fetch_sub_explicit;                   // see description
using std::atomic_fetch_or;                             // see description
using std::atomic_fetch_or_explicit;                    // see description
using std::atomic_fetch_xor;                            // see description
using std::atomic_fetch_xor_explicit;                   // see description
using std::atomic_fetch_and;                            // see description
using std::atomic_fetch_and_explicit;                   // see description
using std::atomic_flag_test_and_set;                    // see description
using std::atomic_flag_test_and_set_explicit;           // see description
using std::atomic_flag_clear;                           // see description
using std::atomic_flag_clear_explicit;                  // see description
 
#define ATOMIC_FLAG_INIT /* see description */
 
using std::atomic_thread_fence;                         // see description
using std::atomic_signal_fence;                         // see description
English 日本語 中文(简体) 中文(繁體)