std::atomic::atomic
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> atomic() = default; |
(1) | (depuis C++11) |
constexpr atomic( T desired ); |
(2) | (depuis C++11) |
atomic( const atomic& ) = delete; |
(3) | (depuis C++11) |
Construit nouvelle variable atomique .
Original:
Constructs new atomic variable.
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.
1)
Le constructeur par défaut est trivial: pas d'initialisation a lieu autre que zéro d'initialisation des objets statiques et local des threads. std::atomic_init peut être utilisé pour terminer l'initialisation .
Original:
The default constructor is trivial: no initialization takes place other than zéro d'initialisation of static and thread-local objects. std::atomic_init may be used to complete initialization.
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)
Initialise la valeur sous-jacente avec
desired. L'initialisation n'est pas atomique .Original:
Initializes the underlying value with
desired. The initialization is not atomic.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.
3)
Les variables atomiques ne sont pas
CopyConstructible .Original:
Atomic variables are not
CopyConstructible.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 à initialiser avec
Original: value to initialize with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |