std::atomic_ref<T>::atomic_ref (3) - Linux Manuals
std::atomic_ref<T>::atomic_ref: std::atomic_ref<T>::atomic_ref
NAME
std::atomic_ref<T>::atomic_ref - std::atomic_ref<T>::atomic_ref
Synopsis
explicit atomic_ref( T& obj ); (1) (since C++20)
atomic_ref( const atomic_ref& ref ) noexcept; (2) (since C++11)
Constructs a new atomic_ref object.
1) Constructs an atomic_ref object referencing the object obj. The behavior is undefined if obj is not aligned to required_alignment.
2) Constructs an atomic_ref object referencing the object referenced by ref.
Parameters
obj - object to reference
ref - another atomic_ref object to copy from