std::atomic::fetch_xor
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> T fetch_xor( T arg, memory_order = std::memory_order_seq_cst ); T fetch_xor( T arg, memory_order = std::memory_order_seq_cst ) volatile; |
(unico membro del modello di specializzazione atomic<Integral>)(dal C++11) |
|
Atomicamente sostituisce il valore corrente con il risultato di XOR bit a bit del valore e
arg. L'operazione è lettura-modifica-scrittura. Memoria è influenzata in base al valore di 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.
Parametri
| arg | - | l'altro argomento di XOR bit a bit
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 | - | vincoli di ordine di memoria da far rispettare
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. |
Valore di ritorno
Il valore della variabile atomica prima della chiamata.
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.
Eccezioni
Vedi anche
(C++11) (C++11) |
sostituisce l'oggetto atomico con il risultato di logica XOR con un non-atomico argomento e ottiene il valore precedente della atomico 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. (funzione di modello) |