std::atomic_fetch_xor, std::atomic_fetch_xor_explicit
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. |
Elemento definito nell'header <atomic>
|
||
template< class Integral > Integral atomic_fetch_xor( std::atomic<Integral>* obj, Integral arg ); |
(1) | (dal C++11) |
template< class Integral > Integral atomic_fetch_xor( volatile std::atomic<Integral>* obj, Integral arg ); |
(2) | (dal C++11) |
template< class Integral > Integral atomic_fetch_xor_explicit( std::atomic<Integral>* obj, Integral arg, |
(3) | (dal C++11) |
template< class Integral > Integral atomic_fetch_xor_explicit( volatile std::atomic<Integral>* obj, Integral arg, |
(4) | (dal C++11) |
Sostituisce atomico il valore puntato dal
3-4) arg
con il risultato di XOR bit a bit tra il valore storico di obj
e arg
, e restituisce il valore obj
precedentemente detenuta, come per obj->fetch_and(arg)Original:
Atomically replaces the value pointed by
arg
with the result of bitwise XOR between the old value of obj
and arg
, and returns the value obj
held previously, as if by obj->fetch_and(arg)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.
Sostituisce atomico il valore puntato dal
arg
con il risultato di XOR bit a bit tra il valore storico di obj
e arg
, e restituisce il valore obj
precedentemente detenuta, come per obj->fetch_and(arg, order)Original:
Atomically replaces the value pointed by
arg
with the result of bitwise XOR between the old value of obj
and arg
, and returns the value obj
held previously, as if by obj->fetch_and(arg, 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.
Indice |