NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nstd::atomic< T > 模板类 参考

#include <ne_stl_atomic.h>

Public 成员函数

 atomic ()
 
 atomic (const T value)
 
operator++ ()
 
operator-- ()
 
bool compare_exchange (const T expected_val, const T new_val)
 
void store (const T new_val)
 
load () const
 
exchange (const T new_val)
 
operator= (const T new_value)
 
 operator const T () const
 

Private 成员函数

atomicoperator= (const atomic &)=delete
 

Private 属性

std::atomic< T > value_
 

构造及析构函数说明

◆ atomic() [1/2]

template<class T >
nstd::atomic< T >::atomic ( )
inline

◆ atomic() [2/2]

template<class T >
nstd::atomic< T >::atomic ( const T value)
inlineexplicit

成员函数说明

◆ compare_exchange()

template<class T >
bool nstd::atomic< T >::compare_exchange ( const T expected_val,
const T new_val )
inline

◆ exchange()

template<class T >
T nstd::atomic< T >::exchange ( const T new_val)
inline

◆ load()

template<class T >
T nstd::atomic< T >::load ( ) const
inline

◆ operator const T()

template<class T >
nstd::atomic< T >::operator const T ( ) const
inline

◆ operator++()

template<class T >
T nstd::atomic< T >::operator++ ( )
inline

◆ operator--()

template<class T >
T nstd::atomic< T >::operator-- ( )
inline

◆ operator=() [1/2]

template<class T >
atomic & nstd::atomic< T >::operator= ( const atomic< T > & )
privatedelete

◆ operator=() [2/2]

template<class T >
T nstd::atomic< T >::operator= ( const T new_value)
inline

◆ store()

template<class T >
void nstd::atomic< T >::store ( const T new_val)
inline

类成员变量说明

◆ value_

template<class T >
std::atomic<T> nstd::atomic< T >::value_
private

该类的文档由以下文件生成: