std::atomic::operator=
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 operator=( T desired ); |
(1) | (dal C++11) |
T operator=( T desired ) volatile; |
(1) | (dal C++11) |
atomic& operator=( const atomic& ) = delete; atomic& operator=( const atomic& ) volatile = delete; |
(2) | (dal C++11) |
1)
Assegna atomicamente un
t valore alla variabile atomica. Equivalente a store(desired).Original:
Atomically assigns a value
t to the atomic variable. Equivalent to store(desired).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.
2)
Variabili atomiche non sono
CopyAssignable.Original:
Atomic variables are not
CopyAssignable.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
| desired | - | valore da assegnare
Original: value to assign 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
t.
Eccezioni
Vedi anche
costruisce un oggetto atomico Original: constructs an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |