[libcxx-commits] [libcxx] [libc++][spaceship] Implements X::iterator container requirements. (PR #99343)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 23 09:56:50 PDT 2024


================
@@ -69,8 +80,11 @@ int main(int, char**) {
 #endif
 
 #if TEST_STD_VER > 17
-  tests<contiguous_iterator<int*> >();
-  static_assert(tests<contiguous_iterator<int*> >(), "");
+  tests<contiguous_iterator<int*>>();
+  static_assert(tests<contiguous_iterator<int*>>());
+
+  tests<three_way_contiguous_iterator<int*>>();
+  static_assert(tests<three_way_contiguous_iterator<int*>>());
----------------
mordante wrote:

Actually this is no longer needed. This was a left-over while reworking the patch. `operator<=>` always works on these iterators.

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


More information about the libcxx-commits mailing list