[libcxx-commits] [libcxx] [libc++][NFC] Create and use test-defined simple_view concept (PR #77334)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 8 11:45:45 PST 2024


================
@@ -82,4 +83,10 @@ using NonBorrowedView = std::ranges::single_view<int>;
 static_assert(std::ranges::view<NonBorrowedView>);
 static_assert(!std::ranges::borrowed_range<NonBorrowedView>);
 
+template <class Range>
----------------
ldionne wrote:

Should we keep around some kind of static assert to ensure that the test definition of `simple_view` doesn't diverge from the libc++ definition with `__simple_view`?

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


More information about the libcxx-commits mailing list