[PATCH] D17951: Implement is_always_lock_free
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 23 13:48:22 PDT 2016
EricWF added inline comments.
================
Comment at: include/atomic:859
@@ +858,3 @@
+#if defined(__cpp_lib_atomic_is_always_lock_free)
+ static _LIBCPP_CONSTEXPR bool is_always_lock_free = __atomic_always_lock_free(sizeof(__a_), 0);
+#endif
----------------
jfb wrote:
> I don't think so: it's similar to `std::integral_constant<_Tp, __v>::value`.
integral_constant::value has a definition on line 481 of type_traits.
http://reviews.llvm.org/D17951
More information about the cfe-commits
mailing list