libstdc++
std::atomic< _Tp > Struct Template Reference

Public Member Functions

 atomic (const atomic &)=delete
 
constexpr atomic (_Tp __i) noexcept
 
bool compare_exchange_strong (_Tp &__e, _Tp __i, memory_order __s, memory_order __f) noexcept
 
bool compare_exchange_strong (_Tp &__e, _Tp __i, memory_order __s, memory_order __f) volatilenoexcept
 
bool compare_exchange_strong (_Tp &__e, _Tp __i, memory_order __m=memory_order_seq_cst) noexcept
 
bool compare_exchange_strong (_Tp &__e, _Tp __i, memory_order __m=memory_order_seq_cst) volatilenoexcept
 
bool compare_exchange_weak (_Tp &__e, _Tp __i, memory_order __s, memory_order __f) noexcept
 
bool compare_exchange_weak (_Tp &__e, _Tp __i, memory_order __s, memory_order __f) volatilenoexcept
 
bool compare_exchange_weak (_Tp &__e, _Tp __i, memory_order __m=memory_order_seq_cst) noexcept
 
bool compare_exchange_weak (_Tp &__e, _Tp __i, memory_order __m=memory_order_seq_cst) volatilenoexcept
 
_Tp exchange (_Tp __i, memory_order _m=memory_order_seq_cst) noexcept
 
_Tp exchange (_Tp __i, memory_order _m=memory_order_seq_cst) volatilenoexcept
 
bool is_lock_free () const noexcept
 
bool is_lock_free () const volatilenoexcept
 
_Tp load (memory_order _m=memory_order_seq_cst) const noexcept
 
_Tp load (memory_order _m=memory_order_seq_cst) const volatilenoexcept
 
 operator _Tp () const noexcept
 
 operator _Tp () const volatilenoexcept
 
atomicoperator= (const atomic &)=delete
 
atomicoperator= (const atomic &) volatile=delete
 
_Tp operator= (_Tp __i) noexcept
 
_Tp operator= (_Tp __i) volatilenoexcept
 
void store (_Tp __i, memory_order _m=memory_order_seq_cst) noexcept
 
void store (_Tp __i, memory_order _m=memory_order_seq_cst) volatilenoexcept
 

Detailed Description

template<typename _Tp>
struct std::atomic< _Tp >

atomic 29.4.3, Generic atomic type, primary class template.

Definition at line 158 of file atomic.


The documentation for this struct was generated from the following file: