Namespaces
Variants

std::atomic_ref<T>:: is_always_lock_free

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
static constexpr bool is_always_lock_free = /*implementation-defined*/ ;
(C++20부터)

atomic_ref 타입에 대한 연산이 항상 lock-free이면 true 와 같고, 절대 lock-free가 아니거나 때때로 lock-free인 경우 false 와 같습니다.

이 상수의 값은 멤버 함수 is_lock_free 의 결과와 일치합니다.

참고 항목

atomic_ref 객체가 lock-free인지 확인합니다
(public member function)