std::atomic::operator=
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. |
<metanoindex/>
<tbody> </tbody> T operator=( T desired ); |
(1) | (depuis C++11) |
T operator=( T desired ) volatile; |
(1) | (depuis C++11) |
atomic& operator=( const atomic& ) = delete; atomic& operator=( const atomic& ) volatile = delete; |
(2) | (depuis C++11) |
1)
Attribue atomiquement un
t valeur à la variable atomique. Equivalent à 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)
Les variables atomiques ne sont pas
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.
Paramètres
| desired | - | valeur à assigner
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. |
Retourne la valeur
t.
Exceptions
Voir aussi
construit un objet atomique 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. (fonction membre publique) | |