std::atomic::operator=
Aus 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) | (seit C++11) |
T operator=( T desired ) volatile; |
(1) | (seit C++11) |
atomic& operator=( const atomic& ) = delete; atomic& operator=( const atomic& ) volatile = delete; |
(2) | (seit C++11) |
1)
Atomar einen Wert zuweist
t auf die atomare Variable. Entspricht 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)
Atomic Variablen sind nicht
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.
Parameter
| desired | - | Wert zuweisen
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. |
Rückgabewert
t.
Ausnahmen
Siehe auch
konstruiert eine atomare Objekt 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. (öffentliche Elementfunktion) | |