std::atomic::fetch_xor
Da 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 ); |
(único membro da atomic<Integral> especialização modelo)(a partir do C++ 11) |
|
Atomicamente substitui o valor atual com o resultado de bitwise XOR do valor e
arg. A operação é ler-modificar-escrever a operação. A memória é afectada de acordo com o valor de 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.
Índice |
[editar] Parâmetros
| arg | - | o outro argumento de bit a bit 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 | - | restrições de ordem memória de aplicar
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. |
[editar] Valor de retorno
O valor da variável atómica antes da chamada.
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.
[editar] Exceções
[editar] Veja também
| (C++11) (C++11) |
substitui o objeto atômico com o resultado da lógica XOR com um argumento não-atômico e obtém o valor anterior do nuclear 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. (modelo de função) |