std::atomic::operator=
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
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)
Atómicamente asigna un
t valor a la variable 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)
Variables atómicas no son
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 asignar
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.
Excepciones
Ver también
| Construye un objeto atómico. (función miembro pública) |