std::atomic::fetch_xor
? | ? | (since C++11) (member only of atomic<Integral> template specialization) |
---|---|---|
T fetch_xor( T arg, std::memory_order order = std::memory_order_seq_cst ); | ? | ? |
T fetch_xor( T arg, std::memory_order order = std::memory_order_seq_cst ) volatile; | ? | ? |
原子化地用值的按位异或的结果替换当前值arg
.操作是读-修改-写操作.。的值影响内存。order
...
参数
arg | - | the other argument of bitwise XOR |
---|---|---|
order | - | memory order constraints to enforce |
返回值
中此函数的效果之前的值。修改顺序成*this
...
例外
noexcept
规格:
noexcept
另见
atomic_fetch_xoratomic_fetch_xor_explicit (C++11)(C++11) | replaces the atomic object with the result of logical XOR with a non-atomic argument and obtains the previous value of the atomic (function template) |
---|
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com