//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17 // template // requires view && view && // indirectly_comparable, iterator_t, ranges::equal_to> // class split_view; #include #include "test_macros.h" #include "test_iterators.h" template using Range = std::ranges::subrange>; template concept HasSplitView = requires { typename std::ranges::split_view; }; static_assert(HasSplitView, Range>); // !forward_range static_assert(!HasSplitView>, Range>); // !forward_range static_assert(!HasSplitView, Range>>); struct NotAView { int* begin() const; int* end() const; }; // !view static_assert(!HasSplitView>); // !view static_assert(!HasSplitView, NotAView>); // indirectly_comparable, iterator_t, ranges::equal_to struct Foo {}; static_assert(!HasSplitView, Range>);