Espacios de nombres
Variantes

std::atomic::load

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.
 
T load( memory_order = std::memory_order_seq_cst ) const;
(desde C++11)
T load( memory_order = std::memory_order_seq_cst ) const volatile;
(desde C++11)
Atómicamente cargas y devuelve el valor actual de la variable atómica. Memoria se ve afectada de acuerdo con el valor de memory_order .
Original:
Atomically loads and returns the current value of the atomic variable. 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_consume, std::memory_order_acquire 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_consume, std::memory_order_acquire 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

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

El valor actual de la variable atómica .
Original:
The current value of 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.

Excepciones

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

Ver también

carga un valor de un objeto atómico
Original:
loads a value from 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]
Obtiene atómicamente el valor almacenado en un objeto atómico.
(plantilla de función) [editar]