[PATCH] D17951: Implement is_always_lock_free

JF Bastien via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 13:45:43 PDT 2016


jfb 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
----------------
I don't think so: it's similar to `std::integral_constant<_Tp, __v>::value`.


http://reviews.llvm.org/D17951





More information about the cfe-commits mailing list