std::atomic_ref<T>::address
From cppreference.com
constexpr /*see below*/ address() const noexcept;
|
(since C++26) | |
Obtains the stored pointer.
The return type is cv void*, where cv is T's top-level cv-qualifiers.
Return value
Notes
A program must not cast the result to T* and access the object non-atomically while any atomic_ref instances exist that reference the object; otherwise the behavior is undefined.
| Feature-test macro | Value | Std | Feature |
|---|---|---|---|
__cpp_lib_atomic_ref |
202603L |
(C++26) | std::atomic_ref::address()
|
Example
| This section is incomplete Reason: no example |