[libcxx-commits] [libcxx] [libc++] Implement part of P2562R1: constexpr `ranges::stable_sort` (PR #128860)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 4 18:55:13 PST 2025


================
@@ -422,11 +422,12 @@ namespace ranges {
   template<random_access_iterator I, sentinel_for<I> S, class Comp = ranges::less,
           class Proj = identity>
     requires sortable<I, Comp, Proj>
-    I ranges::stable_sort(I first, S last, Comp comp = {}, Proj proj = {});                 // since C++20
+    constexpr I                                                                             // constexpr in C++26
----------------
frederick-vs-ja wrote:

Changed.

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


More information about the libcxx-commits mailing list