[libcxx-commits] [libcxx] [libc++][test] Test `flat_meow` with proper underlying iterators (PR #131290)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 9 09:46:23 PDT 2025


================
@@ -267,6 +267,135 @@ template <class It>
 random_access_iterator(It) -> random_access_iterator<It>;
 #endif
 
+// Since C++20, a container iterator type that is random access is also required to support three-way comparison.
----------------
mordante wrote:

I wonder, would it make sense to guard this with `#if TEST_STD_VER >= 20`? Is there a use-case for this iterator given that we already have a `random_access_iterator`?

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


More information about the libcxx-commits mailing list