| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.drop/ |
| H A D | ctad.compile.pass.cpp | 43 decltype(std::ranges::drop_view(v, 0)), in testCTAD() 44 std::ranges::drop_view<View> in testCTAD() 47 decltype(std::ranges::drop_view(std::move(v), 0)), in testCTAD() 48 std::ranges::drop_view<View> in testCTAD() 51 decltype(std::ranges::drop_view(r, 0)), in testCTAD() 52 std::ranges::drop_view<std::ranges::ref_view<Range>> in testCTAD() 55 decltype(std::ranges::drop_view(std::move(r), 0)), in testCTAD() 56 std::ranges::drop_view<std::ranges::owning_view<Range>> in testCTAD() 59 decltype(std::ranges::drop_view(br, 0)), in testCTAD() 60 std::ranges::drop_view<std::ranges::ref_view<BorrowedRange>> in testCTAD() [all …]
|
| H A D | begin.pass.cpp | 25 concept BeginInvocable = requires(std::ranges::drop_view<T> t) { t.begin(); }; 49 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test() 53 std::ranges::drop_view dropView2(ForwardView(), 4); in test() 57 std::ranges::drop_view dropView3(InputView(), 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() 77 std::ranges::drop_view dropView8(view8, 5); in test() 91 std::ranges::drop_view dropView(SimpleView{{}, &non_const_calls, &const_calls}, 4); in test() [all …]
|
| H A D | general.pass.cpp | 28 concept ValidDropView = requires { typename std::ranges::drop_view<T>; }; 33 static_assert(!std::ranges::enable_borrowed_range<std::ranges::drop_view<MoveOnlyView>>); 34 static_assert( std::ranges::enable_borrowed_range<std::ranges::drop_view<BorrowableView>>); 44 return orderedFibonacci(std::ranges::drop_view(v.base(), n), n + 1); in orderedFibonacci() 49 return std::ranges::drop_view(v, v.size() % 2); in makeEven() 65 std::ranges::drop_view out(v, indexOf(v, element) + 1); in removeBefore() 80 assert(orderedFibonacci(std::ranges::drop_view(vec, 0))); in main() 82 assert(!orderedFibonacci(std::ranges::drop_view(vec2, 0))); in main()
|
| H A D | ctor.default.pass.cpp | 20 std::ranges::drop_view<MoveOnlyView> dropView1; in test() 23 static_assert( std::is_default_constructible_v<std::ranges::drop_view<ForwardView>>); in test() 24 static_assert(!std::is_default_constructible_v<std::ranges::drop_view<NoDefaultCtorForwardView>>); in test() 26 …LIBCPP_STATIC_ASSERT( std::is_nothrow_default_constructible_v<std::ranges::drop_view<ForwardView>>… in test() 28 …static_assert(!std::is_nothrow_default_constructible_v<std::ranges::drop_view<ThrowingDefaultCtorF… in test()
|
| H A D | end.pass.cpp | 24 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test() 28 std::ranges::drop_view dropView2(InputView(), 4); in test() 32 const std::ranges::drop_view dropView3(MoveOnlyView(), 0); in test() 36 const std::ranges::drop_view dropView4(InputView(), 2); in test() 40 std::ranges::drop_view dropView5(MoveOnlyView(), 10); in test()
|
| H A D | size.pass.cpp | 23 concept SizeInvocable = requires(std::ranges::drop_view<T> t) { t.size(); }; 27 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 D | base.pass.cpp | 21 std::ranges::drop_view<MoveOnlyView> dropView1; in test() 26 std::ranges::drop_view<MoveOnlyView> dropView2(MoveOnlyView{4}, 2); in test() 30 std::ranges::drop_view<CopyableView> dropView3; in test()
|
| H A D | ctor.view.pass.cpp | 20 std::ranges::drop_view dropView1(MoveOnlyView(), 4); in test() 24 std::ranges::drop_view dropView2(ForwardView(), 4); in test()
|
| H A D | dangling.cache.pass.cpp | 39 std::ranges::drop_view dv(zod, 4); in dropFirstFour() 44 return std::ranges::drop_view(dv); in dropFirstFour()
|
| H A D | adaptor.pass.cpp | 79 … std::same_as<std::ranges::drop_view<SomeView>> decltype(auto) result = view | std::views::drop(3); in test() 93 using Result = std::ranges::drop_view<std::ranges::transform_view<SomeView, decltype(f)>>; in test() 108 using Result = std::ranges::transform_view<std::ranges::drop_view<SomeView>, decltype(f)>; in test() 210 using Result = std::ranges::drop_view<std::ranges::subrange<forward_iterator<int*>, in test()
|
| /llvm-project-15.0.7/libcxx/include/__ranges/ |
| H A D | drop_view.h | 52 class drop_view 53 : public view_interface<drop_view<_View>> 67 drop_view() requires default_initializable<_View> = default; 70 constexpr drop_view(_View __base, range_difference_t<_View> __count) in drop_view() function 131 drop_view(_Range&&, range_difference_t<_Range>) -> drop_view<views::all_t<_Range>>; 134 inline constexpr bool enable_borrowed_range<drop_view<_Tp>> = enable_borrowed_range<_Tp>; 279 noexcept(noexcept(drop_view(std::forward<_Range>(__range), std::forward<_Np>(__n)))) 280 -> decltype( drop_view(std::forward<_Range>(__range), std::forward<_Np>(__n))) 281 { return drop_view(std::forward<_Range>(__range), std::forward<_Np>(__n)); }
|
| /llvm-project-15.0.7/libcxx/test/libcxx/ranges/ |
| H A D | has-no-incomplete-ranges.compile.pass.cpp | 34 int drop_view; variable
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | ranges | 164 class drop_view; 167 inline constexpr bool enable_borrowed_range<drop_view<T>> = enable_borrowed_range<T>; 284 #include <__ranges/drop_view.h>
|
| H A D | CMakeLists.txt | 461 __ranges/drop_view.h
|
| H A D | module.modulemap.in | 972 module drop_view { private header "__ranges/drop_view.h" }
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | Cxx2bIssues.csv | 11 "`3447 <https://wg21.link/LWG3447>`__","Deduction guides for ``take_view`` and ``drop_view`` have d… 50 "`3482 <https://wg21.link/LWG3482>`__","``drop_view``'s const begin should additionally require ``s…
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/libcxx/include/ |
| H A D | BUILD.gn | 522 "__ranges/drop_view.h",
|