std::atomic_ref<T>::atomic_ref
来自cppreference.com
< cpp | atomic | atomic ref
并发支持库
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::atomic_ref
| 成员函数 | ||||
|
atomic_ref::atomic_ref
|
||||
| 常量 | ||||
| 特化的成员函数 | ||||
|
explicit
atomic_ref(
T&
obj );
|
(2) | (C++20 起) |
|
atomic_ref(
const
atomic_ref&
ref )
noexcept;
|
(3) | (C++20 起) |
构造新的 atomic_ref 对象。
2) 构造引用
ref 所引用对象的
atomic_ref 对象。参数
| obj | - | 到对象的引用 |
| ref | - | 要复制的另一 atomic_ref 对象
|