Home
last modified time | relevance | path

Searched refs:CopyableView (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/
H A Dbase.pass.cpp29 std::ranges::transform_view<CopyableView, PlusOne> transformView; in test()
30 CopyableView base1 = transformView.base(); in test()
31 ASSERT_SAME_TYPE(CopyableView, decltype(transformView.base())); in test()
34 CopyableView base2 = std::move(transformView).base(); in test()
35 ASSERT_SAME_TYPE(CopyableView, decltype(std::move(transformView).base())); in test()
40 const std::ranges::transform_view<CopyableView, PlusOne> transformView; in test()
41 const CopyableView base1 = transformView.base(); in test()
42 ASSERT_SAME_TYPE(CopyableView, decltype(transformView.base())); in test()
45 const CopyableView base2 = std::move(transformView).base(); in test()
46 ASSERT_SAME_TYPE(CopyableView, decltype(std::move(transformView).base())); in test()
H A Dtypes.h31 struct CopyableView : std::ranges::view_base { struct
33 constexpr explicit CopyableView(int start = 0) : start_(start) {} in start_() argument
34 constexpr CopyableView(CopyableView const&) = default;
35 constexpr CopyableView& operator=(CopyableView const&) = default; argument
39 static_assert(std::ranges::view<CopyableView>); argument
40 static_assert(std::ranges::contiguous_range<CopyableView>);
41 static_assert(std::copyable<CopyableView>);
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/
H A Dbase.pass.cpp30 std::ranges::take_view<CopyableView> tv(CopyableView{buffer}, 0); in test()
34 ASSERT_SAME_TYPE(decltype(tv.base()), CopyableView); in test()
35 ASSERT_SAME_TYPE(decltype(std::move(tv).base()), CopyableView); in test()
48 const std::ranges::take_view<CopyableView> tv(CopyableView{buffer}, 2); in test()
52 ASSERT_SAME_TYPE(decltype(tv.base()), CopyableView); in test()
53 ASSERT_SAME_TYPE(decltype(std::move(tv).base()), CopyableView); in test()
H A Dctor.view_count.pass.cpp26 std::ranges::take_view<CopyableView> tv(CopyableView{buffer}, 0); in test()
38 const std::ranges::take_view<CopyableView> tv(CopyableView{buffer}, 2); in test()
H A Dtypes.h24 struct CopyableView : std::ranges::view_base { struct
26 constexpr explicit CopyableView(int* ptr) : ptr_(ptr) {} in CopyableView() argument
31 static_assert(std::ranges::view<CopyableView>); argument
32 static_assert(std::ranges::contiguous_range<CopyableView>);
33 static_assert(std::copyable<CopyableView>);
H A Dsize.pass.cpp33 static_assert(!SizeEnabled<CopyableView>); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.common.view/
H A Dbase.pass.cpp31 CopyableView view{buf, buf + 8}; in test()
32 std::ranges::common_view<CopyableView> common(view); in test()
36 ASSERT_SAME_TYPE(decltype(common.base()), CopyableView); in test()
37 ASSERT_SAME_TYPE(decltype(std::move(common).base()), CopyableView); in test()
51 CopyableView view{buf, buf + 8}; in test()
52 const std::ranges::common_view<CopyableView> common(view); in test()
56 ASSERT_SAME_TYPE(decltype(common.base()), CopyableView); in test()
57 ASSERT_SAME_TYPE(decltype(std::move(common).base()), CopyableView); in test()
H A Dend.pass.cpp63 CopyableView view{buf, buf + 8}; in main()
64 std::ranges::common_view<CopyableView> common(view); in main()
77 CopyableView view{buf, buf + 8}; in main()
78 std::ranges::common_view<CopyableView> const common(view); in main()
H A Dtypes.h39 struct CopyableView : std::ranges::view_base { struct
42 constexpr explicit CopyableView(int* b, int* e) : begin_(b), end_(e) { } in CopyableView() argument
46 static_assert(std::ranges::view<CopyableView>); argument
47 static_assert(std::copyable<CopyableView>);
H A Dbegin.pass.cpp36 static_assert( BeginEnabled<std::ranges::common_view<CopyableView> const&>); in test()
84 CopyableView view{buf, buf + 8}; in main()
85 std::ranges::common_view<CopyableView> const common(view); in main()
H A Dctor.view.pass.cpp32 CopyableView const view{buf, buf + 8}; in test()
33 std::ranges::common_view<CopyableView> const common(view); in test()
H A Dsize.pass.cpp29 static_assert(!SizeEnabled<std::ranges::common_view<CopyableView> const&>); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.all/
H A Dall.pass.cpp40 struct CopyableView : std::ranges::view_base { struct
42 explicit CopyableView() noexcept(IsNoexcept) = default; argument
43 CopyableView(CopyableView const&) noexcept(IsNoexcept) = default;
44 CopyableView& operator=(CopyableView const&) noexcept(IsNoexcept) = default;
49 static_assert(std::ranges::view<CopyableView<true>>); argument
50 static_assert(std::ranges::view<CopyableView<false>>);
104 …RT_SAME_TYPE(decltype(std::views::all(std::declval<const CopyableView<true>&>())), CopyableView<tr… in test()
105 static_assert(noexcept(std::views::all(CopyableView<true>()))); in test()
106 static_assert(!noexcept(std::views::all(CopyableView<false>()))); in test()
108 CopyableView<true> view(2); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dtypes.h22 struct CopyableView : std::ranges::view_base { struct
24 constexpr explicit CopyableView() = default; argument
25 constexpr CopyableView(const char* ptr) : view_(ptr) {} in CopyableView() function
26 constexpr CopyableView(std::string_view v) : view_(v) {} in CopyableView() argument
29 constexpr bool operator==(const CopyableView& rhs) const { return view_ == rhs.view_; } argument
31 static_assert( std::ranges::forward_range<CopyableView>);
32 static_assert( std::ranges::forward_range<const CopyableView>);
33 static_assert( std::ranges::view<CopyableView>);
34 static_assert( std::is_copy_constructible_v<CopyableView>);
185 using SplitViewCopyable = std::ranges::lazy_split_view<CopyableView, CopyableView>;
[all …]
H A Dctor.default.pass.cpp42 std::ranges::lazy_split_view<CopyableView, ForwardView> v; in test()
43 assert(v.base() == CopyableView()); in test()
47 std::ranges::lazy_split_view<CopyableView, ForwardView> v = {}; in test()
48 assert(v.base() == CopyableView()); in test()
H A Dctor.view.pass.cpp51 CopyableView input = "abc def"; in test()
52 std::ranges::lazy_split_view<CopyableView, CopyableView> v(input, " "); in test()
H A Dgeneral.pass.cpp169 assert(test_function_call(CopyableView(input), ForwardTinyView(separator), expected)); in test_one()
170 assert(test_with_piping(CopyableView(input), ForwardTinyView(separator), expected)); in test_one()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.drop/
H A Dtypes.h29 struct CopyableView : std::ranges::view_base { struct
31 constexpr explicit CopyableView(int start = 0) : start_(start) {} in start_() argument
32 constexpr CopyableView(CopyableView const&) = default;
33 constexpr CopyableView& operator=(CopyableView const&) = default; argument
H A Dbase.pass.cpp30 std::ranges::drop_view<CopyableView> dropView3; in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/
H A Dbase.pass.cpp33 using BaseIter = std::ranges::iterator_t<CopyableView>; in test()
34 CopyableView input("abc def"); in test()
35 std::ranges::lazy_split_view<CopyableView, ForwardView> v(input, " "); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer.value/
H A Dctor.iter.pass.cpp26 CopyableView input = "a"; in test()
H A Dbegin.pass.cpp22 CopyableView input("a"); in test()
H A Dend.pass.cpp22 CopyableView input("a"); in test()