Namespaces
Variants
Actions

std::atomic_ref<T>::address

From cppreference.com
< cpp‎ | atomic‎ | atomic ref
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
Cooperative cancellation
(C++20)
(C++20)
Mutual exclusion
(C++11)
(C++17)
Generic lock management
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Safe reclamation
(C++26)
(C++26)
(C++26)
(C++26)
Hazard pointers
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
std::atomic_ref
atomic_ref::address
(C++26)
 
constexpr T* address() const noexcept;
(since C++26)

Obtains the stored pointer.

[edit] Return value

ptr

[edit] Notes

Feature-test macro Value Std Feature
__cpp_lib_atomic_ref 202411L (C++26) std::atomic_ref::address()

[edit] Example

This section is incomplete
Reason: no example

AltStyle によって変換されたページ (->オリジナル) /