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) | (desde C++11) |
T operator=( T desired ) volatile; |
(1) | (desde C++11) |
atomic& operator=( const atomic& ) = delete; atomic& operator=( const atomic& ) volatile = delete; |
(2) | (desde C++11) |
1)
Atomicamente atribui um
t valor à variável atômica. 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)
Variáveis atômicas não são
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.
Parâmetros
| desired | - | valor a atribuir
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. |
Valor de retorno
t.
Exceções
Veja também
constrói um objeto atômico 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. (função pública membro) | |