std::atomic::fetch_xor
De 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 miembro de especialización de plantilla atomic<Integral>)(ya que C + +11) |
|
Atómicamente sustituye el valor actual con el resultado de XOR bit a bit del valor y
arg. La operación es de lectura-modificación-escritura de la operación. Memoria se ve afectada de acuerdo con el 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.
Contenido |
[editar] Parámetros
| arg | - | el otro 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 | - | restricciones de memoria el orden de hacer cumplir
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
El valor de la variable atómica antes de la llamada .
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] Excepciones
[editar] Ver también
| (C++11) (C++11) |
reemplaza el objeto atómico con el resultado de la lógica XOR con un argumento no atómica y obtiene el valor anterior de la atómica 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. (función de plantilla) |