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

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 9 11:20:08 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>
----------------
frederick-vs-ja wrote:

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

This is already guarded with `TEST_STD_VER > 17`.

> 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?

Yeah, I'll try to move new iterators into new headers.

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


More information about the libcxx-commits mailing list