std::atomic_ref<T>::atomic_ref
< cpp | atomic | 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 对象 |