Espaços nominais
Variantes
Ações

std::atomic::atomic

De cppreference.com

<metanoindex/>

 
 
Biblioteca operações atômica
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Bandeiras atômicas
Original:
Atomic flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Inicialização
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Memória de encomenda
Original:
Memory ordering
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::atomic
Funções de membro
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.
atomic::atomic
atomic::operator=
atomic::is_lock_free
atomic::store
atomic::load
atomic::operator T
atomic::exchange
atomic::compare_exchange
Membro funções especializadas
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.
atomic::fetch_add
atomic::fetch_sub
atomic::fetch_and
atomic::fetch_or
atomic::fetch_xor
atomic::operator++
atomic::operator++(int)
atomic::operator--
atomic::operator--(int)
atomic::operator+=
atomic::operator-=
atomic::operator&=
atomic::operator|=
atomic::operator^=
 
<tbody> </tbody>
atomic() = default;
(1) (desde C++11)
constexpr atomic( T desired );
(2) (desde C++11)
atomic( const atomic& ) = delete;
(3) (desde C++11)
Constrói variável atômica novo.
Original:
Constructs new atomic variable.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
O construtor padrão é trivial: não inicialização ocorre que não de zero a inicialização de objetos estáticos e de segmento local. std::atomic_init pode ser usada para completar a inicialização.
Original:
The default constructor is trivial: no initialization takes place other than de zero a inicialização of static and thread-local objects. std::atomic_init may be used to complete initialization.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Inicializa o valor subjacente com desired. A inicialização não é atômica.
Original:
Initializes the underlying value with desired. The initialization is not atomic.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Variáveis ​​atômicas não são CopyConstructible.
Original:
Atomic variables are not CopyConstructible.
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 -
valor para inicializar com
Original:
value to initialize with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceções

noexcept specification:  
<tbody> </tbody>
noexcept
  (desde C++11)