[libcxx-commits] [libcxx] [libc++] Implement P0493R5: Atomic minimum/maximum (PR #180333)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 21 01:37:33 PST 2026


================
@@ -799,6 +815,68 @@ atomic_fetch_xor_explicit(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __o
   return __o->fetch_xor(__op, __m);
 }
 
+#if _LIBCPP_STD_VER >= 26
+// atomic_fetch_max
+
+template <class _Tp>
+  requires(integral<_Tp> && !same_as<_Tp, bool>)
----------------
huixie90 wrote:

I think the pointer specialization is missing?
(perhaps also missing tests)

https://github.com/llvm/llvm-project/pull/180333


More information about the libcxx-commits mailing list