Namespaces
Variants
Actions

Talk:cpp/atomic/atomic/is lock free

From cppreference.com

These docs say the result is bool.

Both g++ and clang++ say the result is an int (presumably in agreement with ::std::atomic_is_lock_free which returns 0,1 or 2. 49.180.147.74 05:55, 26 December 2018 (PST)

the standard says bool. LLVM libc++ says bool. GNU libstdc++ says bool --Cubbi (talk) 07:39, 26 December 2018 (PST)