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按位异或的结果。该操作是读 - 修改 - 写操作。记忆的影响根据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 | - | 按位异或其他参数
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. (函数模板) |