//===----------------------------------------------------------------------===// // // 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 // split_view(R&&, P&&) -> split_view, views::all_t

>; // // template // split_view(R&&, range_value_t) -> split_view, single_view>>; #include #include #include #include struct Container { int* begin() const; int* end() const; }; struct View : std::ranges::view_base { int* begin() const; int* end() const; }; template constexpr void test() { static_assert(std::is_same_v(), std::declval())), std::ranges::split_view>); } constexpr void testCtad() { // (Range, Pattern) test(); test, std::ranges::ref_view>(); test, std::ranges::owning_view>(); // (Range, RangeElement) test, std::ranges::single_view>(); test>(); // (Range, RangeElement) with implicit conversion. test, std::ranges::single_view>(); test>(); }