std::atomic::fetch_xor
Aus 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 ); |
(Mitglied nur atomic<Integral> Template-Spezialisierung)(seit C++11) |
|
Atomar ersetzt die aktuelle Wert mit dem Ergebnis des bitweisen XOR des Wertes und
arg. Die Bedienung ist Lese-Modifizier-Schreib-Vorgang. Speichermodul gemäß dem Wert des betroffenen 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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
| arg | - | das andere Argument der bitweisen 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 | - | Speicher, um Einschränkungen zu erzwingen
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. |
[Bearbeiten] Rückgabewert
Der Wert des atomaren Variable vor dem Anruf .
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.
[Bearbeiten] Ausnahmen
[Bearbeiten] Siehe auch
| (C++11) (C++11) |
ersetzt das atomare Objekt mit dem Ergebnis der logischen XOR mit einem nicht-Atom Argument und erhält den vorherigen Wert des atomaren 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. (Funktions-Template) |