Namespaces
Variants
Actions

std::atomic_ref<T>::is_always_lock_free

From cppreference.com
< cpp‎ | atomic‎ | atomic ref
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++17)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++26)
(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::is_always_lock_free
 
static constexpr bool is_always_lock_free = /*implementation-defined*/;
(since C++20)

Equals true if the operations on this atomic_ref type is always lock-free and false if it is never or sometimes lock-free.

The value of this constant is consistent with the result of member function is_lock_free.

[edit] See also

checks if the atomic_ref object is lock-free
(public member function) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/atomic/atomic_ref/is_always_lock_free&oldid=161440"

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