Espacios de nombres
Variantes

std::atomic::store

De cppreference.com
 
 
 
std::atomic
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funciones especializadas miembros
Original:
Specialized member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
void store( T desired, memory_order = std::memory_order_seq_cst );
(desde C++11)
void store( T desired, memory_order = std::memory_order_seq_cst ) volatile;
(desde C++11)
Atómicamente sustituye el valor actual con desired. Memoria se ve afectada de acuerdo con el valor de memory_order .
Original:
Atomically replaces the current value with desired. Memory is affected according to the value of memory_order.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memory_order debe ser uno de std::memory_order_relaxed, std::memory_order_release o std::memory_order_seq_cst. De lo contrario el comportamiento no está definido .
Original:
memory_order must be one of std::memory_order_relaxed, std::memory_order_release or std::memory_order_seq_cst. Otherwise the behavior is undefined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

desired -
el valor para almacenar en la variable atómica
Original:
the value to store into the atomic variable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memory_order -
restricciones de memoria el orden de hacer cumplir
Original:
memory order constraints to enforce
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

(Ninguno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Excepciones

Especificación noexcept:  
noexcept
  (desde C++11)

Ver también

almacena un valor en un objeto atómico
Original:
stores a value into 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.

(función miembro pública) [editar]
Sustituye atómicamente el valor del objeto atómico con el de un argumento no atómico.
(plantilla de función) [editar]