[libcxx-commits] [libcxx] [libc++] Support sorting consteval-only ranges (PR #134623)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 9 10:14:38 PDT 2025


================
@@ -362,6 +362,111 @@ cpp20_random_access_iterator(It) -> cpp20_random_access_iterator<It>;
 
 static_assert(std::random_access_iterator<cpp20_random_access_iterator<int*>>);
 
+template <std::random_access_iterator It>
----------------
mordante wrote:

Can you add comment why we need this iterator instead of the normal random-access iterator?

I expect we need to guard this with the proper C++ version.

With these additions and on the `three_way_random_access` I start to wonder whether it makes sense to split these iterators in different files. WDYT?

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


More information about the libcxx-commits mailing list