[libcxx-commits] [libcxx] [libc++][NFC] Centralize test for support of == and != in ranges (PR #78481)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 8 06:32:08 PST 2024
================
@@ -89,4 +91,12 @@ concept simple_view =
std::same_as<std::ranges::iterator_t<Range>, std::ranges::iterator_t<const Range>> &&
std::same_as<std::ranges::sentinel_t<Range>, std::ranges::sentinel_t<const Range>>;
+template <class T, class U = T>
----------------
ldionne wrote:
I would remove the default template argument since `weakly_equality_comparable_with<Iterator>` is a bit confusing. I think it increases clarity if we force writing `weakly_equality_comparable_with<Iterator, Iterator>`.
https://github.com/llvm/llvm-project/pull/78481
More information about the libcxx-commits
mailing list