Home
last modified time | relevance | path

Searched refs:MoveOnlyView (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/
H A Dadaptor.pass.cpp41 using Result = std::ranges::transform_view<MoveOnlyView, PlusOne>; in test()
42 std::same_as<Result> auto result = std::views::transform(PlusOne{})(MoveOnlyView{buff}); in test()
50 using Result = std::ranges::transform_view<MoveOnlyView, PlusOne>; in test()
51 std::same_as<Result> auto result = partial(MoveOnlyView{buff}); in test()
62 using Result = std::ranges::transform_view<MoveOnlyView, PlusOne>; in test()
71 using Result = std::ranges::transform_view<MoveOnlyView, PlusOne>; in test()
72 std::same_as<Result> auto result = MoveOnlyView{buff} | partial; in test()
82 using Result = std::ranges::transform_view<MoveOnlyView, PlusOne>; in test()
113 std::same_as<Result> auto result = MoveOnlyView{buff} | partial; in test()
126 static_assert(!CanBePiped<MoveOnlyView, decltype(std::views::transform)>); in test()
[all …]
H A Dtypes.h18 struct MoveOnlyView : std::ranges::view_base { struct
21 …constexpr explicit MoveOnlyView(int* ptr = globalBuff, int start = 0) : start_(start), ptr_(ptr) {} in start_() argument
22 constexpr MoveOnlyView(MoveOnlyView&&) = default;
23 constexpr MoveOnlyView& operator=(MoveOnlyView&&) = default; argument
27 static_assert( std::ranges::view<MoveOnlyView>); argument
28 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
29 static_assert(!std::copyable<MoveOnlyView>);
H A Dbegin.pass.cpp29 std::ranges::transform_view transformView(MoveOnlyView{buff}, PlusOneMutable{}); in test()
47 const std::ranges::transform_view transformView(MoveOnlyView{buff}, PlusOne{}); in test()
51 static_assert(!BeginInvocable<const std::ranges::transform_view<MoveOnlyView, PlusOneMutable>>); in test()
H A Dbase.pass.cpp22 std::ranges::transform_view<MoveOnlyView, PlusOne> transformView; in test()
23 MoveOnlyView base = std::move(transformView).base(); in test()
24 ASSERT_SAME_TYPE(MoveOnlyView, decltype(std::move(transformView).base())); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dbase.pass.cpp22 struct MoveOnlyView : std::ranges::view_base { struct
24 constexpr MoveOnlyView() = default; argument
25 constexpr MoveOnlyView(const char* ptr) : view_(ptr) {} in MoveOnlyView() function
26 constexpr MoveOnlyView(std::string_view v) : view_(v) {} in MoveOnlyView() argument
27 constexpr MoveOnlyView(MoveOnlyView&&) = default;
28 constexpr MoveOnlyView& operator=(MoveOnlyView&&) = default;
33 static_assert( std::ranges::view<MoveOnlyView>);
34 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
35 static_assert(!std::copyable<MoveOnlyView>);
114 std::ranges::lazy_split_view<MoveOnlyView, ForwardView> v; in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/
H A Dderef.pass.cpp22 using View = std::ranges::transform_view<MoveOnlyView, PlusOne>; in main()
23 View transformView(MoveOnlyView{buff}, PlusOne{}); in main()
30 using View = std::ranges::transform_view<MoveOnlyView, PlusOneMutable>; in main()
31 View transformView(MoveOnlyView{buff}, PlusOneMutable{}); in main()
38 using View = std::ranges::transform_view<MoveOnlyView, PlusOneNoexcept>; in main()
39 View transformView(MoveOnlyView{buff}, PlusOneNoexcept{}); in main()
46 using View = std::ranges::transform_view<MoveOnlyView, Increment>; in main()
47 View transformView(MoveOnlyView{buff}, Increment{}); in main()
54 using View = std::ranges::transform_view<MoveOnlyView, IncrementRvalueRef>; in main()
55 View transformView(MoveOnlyView{buff}, IncrementRvalueRef{}); in main()
H A Dctor.pass.cpp59 std::ranges::transform_view<MoveOnlyView, PlusOne> transformView; in test()
61 std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOne>> i2(iter); in test()
63 std::ranges::iterator_t<const std::ranges::transform_view<MoveOnlyView, PlusOne>> constIter(iter); in test()
67 …efault_initializable<std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOne>>>); in test()
H A Dsubscript.pass.cpp21 std::ranges::transform_view transformView1(MoveOnlyView{buff}, PlusOneMutable{}); in test()
27 …std::declval<std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOneMutable>>>()… in test()
29 …std::declval<std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOneNoexcept>>>(… in test()
H A Diter_move.pass.cpp24 std::ranges::transform_view transformView(MoveOnlyView{buff}, PlusOneMutable{}); in test()
37 …std::declval<std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOneNoexcept>>&>… in test()
39 …std::declval<std::ranges::iterator_t<std::ranges::transform_view<MoveOnlyView, PlusOneMutable>>&>(… in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/sentinel/
H A Deq.pass.cpp29 const std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 4); in test()
35 std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 4); in test()
42 std::ranges::take_view<MoveOnlyView> tvNonConst(MoveOnlyView{buffer}, 4); in test()
43 const std::ranges::take_view<MoveOnlyView> tvConst(MoveOnlyView{buffer}, 4); in test()
H A Dctor.pass.cpp29 using TakeView = std::ranges::take_view<MoveOnlyView>; in test()
32 TakeView tv = TakeView(MoveOnlyView(buffer), 4); in test()
38 using TakeView = std::ranges::take_view<MoveOnlyView>; in test()
42 TakeView tv = TakeView(MoveOnlyView(buffer), 4); in test()
54 using TakeView = std::ranges::take_view<MoveOnlyView>; in test()
56 sentinel_wrapper<int*> sw1 = MoveOnlyView(buffer).end(); in test()
H A Dbase.pass.cpp27 std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView(buffer), 4); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/
H A Dtypes.h10 struct MoveOnlyView : std::ranges::view_base { struct
13 constexpr explicit MoveOnlyView(int* ptr) : ptr_(ptr) {} in MoveOnlyView() function
14 MoveOnlyView(MoveOnlyView&&) = default;
15 MoveOnlyView& operator=(MoveOnlyView&&) = default; argument
20 static_assert( std::ranges::view<MoveOnlyView>); argument
21 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
22 static_assert(!std::copyable<MoveOnlyView>);
H A Dend.pass.cpp54 std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 4); in test()
63 const std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 5); in test()
H A Dbegin.pass.cpp62 std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 4); in test()
68 const std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 4); in test()
H A Dbase.pass.cpp40 std::ranges::take_view<MoveOnlyView> tv(MoveOnlyView{buffer}, 1); in test()
43 ASSERT_SAME_TYPE(decltype(std::move(tv).base()), MoveOnlyView); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.drop/
H A Dtypes.h17 struct MoveOnlyView : std::ranges::view_base { struct
19 constexpr explicit MoveOnlyView(int start = 0) : start_(start) {} in start_() argument
20 constexpr MoveOnlyView(MoveOnlyView&&) = default;
21 constexpr MoveOnlyView& operator=(MoveOnlyView&&) = default; argument
25 static_assert( std::ranges::view<MoveOnlyView>); argument
26 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
27 static_assert(!std::copyable<MoveOnlyView>);
H A Dsize.pass.cpp27 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test()
31 std::ranges::drop_view dropView2(MoveOnlyView(), 0); in test()
35 const std::ranges::drop_view dropView3(MoveOnlyView(), 8); in test()
39 const std::ranges::drop_view dropView4(MoveOnlyView(), 10); in test()
H A Dbegin.pass.cpp49 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test()
61 std::ranges::drop_view dropView4(MoveOnlyView(), 8); in test()
65 std::ranges::drop_view dropView5(MoveOnlyView(), 0); in test()
69 const std::ranges::drop_view dropView6(MoveOnlyView(), 0); in test()
73 std::ranges::drop_view dropView7(MoveOnlyView(), 10); in test()
H A Dend.pass.cpp24 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test()
32 const std::ranges::drop_view dropView3(MoveOnlyView(), 0); in test()
40 std::ranges::drop_view dropView5(MoveOnlyView(), 10); in test()
H A Dbase.pass.cpp21 std::ranges::drop_view<MoveOnlyView> dropView1; in test()
26 std::ranges::drop_view<MoveOnlyView> dropView2(MoveOnlyView{4}, 2); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.common.view/
H A Dtypes.h26 struct MoveOnlyView : std::ranges::view_base { struct
29 constexpr explicit MoveOnlyView(int* b, int* e) : begin_(b), end_(e) { } in MoveOnlyView() argument
30 constexpr MoveOnlyView(MoveOnlyView&&) = default;
31 constexpr MoveOnlyView& operator=(MoveOnlyView&&) = default; argument
35 static_assert( std::ranges::view<MoveOnlyView>); argument
36 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
37 static_assert(!std::copyable<MoveOnlyView>);
H A Dctor.view.pass.cpp26 MoveOnlyView view{buf, buf + 8}; in test()
27 std::ranges::common_view<MoveOnlyView> common(std::move(view)); in test()
47 MoveOnlyView view{buf, buf + 8}; in main()
48 std::ranges::common_view<MoveOnlyView> const common(std::move(view)); in main()
H A Dbase.pass.cpp42 MoveOnlyView view{buf, buf + 8}; in test()
43 std::ranges::common_view<MoveOnlyView> common(std::move(view)); in test()
46 ASSERT_SAME_TYPE(decltype(std::move(common).base()), MoveOnlyView); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.all/
H A Dall.pass.cpp52 struct MoveOnlyView : std::ranges::view_base{ struct
53 MoveOnlyView() = default;
54 MoveOnlyView(const MoveOnlyView&) = delete;
55 MoveOnlyView& operator=(const MoveOnlyView&) = delete;
56 MoveOnlyView(MoveOnlyView&&) = default;
57 MoveOnlyView& operator=(MoveOnlyView&&) = default;
157 static_assert(!std::is_invocable_v<decltype(std::views::all), MoveOnlyView&>); in test()

12