std::atomic::fetch_xor
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| T fetch_xor( T arg, memory_order = std::memory_order_seq_cst ); |
(のみatomic<Integral>テンプレートの特殊化のメンバー)(C + + 11以来) |
|
アトミック値と
argのビットごとのXORの結果と現在の値を置き換えます。操作は、リード·モディファイ·ライト操作です。メモリはmemory_orderの値に応じて影響を受けている.Original:
Atomically replaces the current value with the result of bitwise XOR of the value and
arg. The operation is read-modify-write operation. Memory is affected according to the value of memory_order.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
| arg | - | ビット単位のXORの他の引数
Original: the other argument of bitwise XOR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| memory_order | - | メモリ順序の制約が実施します
Original: memory order constraints to enforce The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
呼び出しの前にアトミック変数の値.
Original:
The value of the atomic variable before the call.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
[編集] も参照してください
| (C++11) (C++11) |
非アトミック引数で排他的論理和の結果と不可分なオブジェクトを置き換え、原子の前の値を取得します Original: replaces the atomic object with the result of logical XOR with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |