File tree Expand file tree Collapse file tree 5 files changed +18
-17
lines changed
test/std/ranges/range.adaptors/range.zip.transform Expand file tree Collapse file tree 5 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -737,8 +737,8 @@ set(files
737
737
__ranges/transform_view.h
738
738
__ranges/view_interface.h
739
739
__ranges/views.h
740
- __ranges/zip_view.h
741
740
__ranges/zip_transform_view.h
741
+ __ranges/zip_view.h
742
742
__split_buffer
743
743
__std_mbstate_t.h
744
744
__stop_token/atomic_unique_lock.h
Original file line number Diff line number Diff line change 39
39
#include < __utility/forward.h>
40
40
#include < __utility/in_place.h>
41
41
#include < __utility/move.h>
42
+ #include < tuple> // for std::apply
42
43
43
44
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
44
45
# pragma GCC system_header
Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ constexpr bool test() {
50
50
51
51
{
52
52
// underlying const R is not a range
53
- using View = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
54
- static_assert (HasBegin<View >);
55
- static_assert (!HasConstBegin<View >);
53
+ using ZTV = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
54
+ static_assert (HasBegin<ZTV >);
55
+ static_assert (!HasConstBegin<ZTV >);
56
56
}
57
57
58
58
{
59
59
// Fn cannot be invoked on const range
60
- using View = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
61
- static_assert (HasBegin<View >);
62
- static_assert (!HasConstBegin<View >);
60
+ using ZTV = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
61
+ static_assert (HasBegin<ZTV >);
62
+ static_assert (!HasConstBegin<ZTV >);
63
63
}
64
64
return true ;
65
65
}
Original file line number Diff line number Diff line change @@ -77,16 +77,16 @@ constexpr bool test() {
77
77
78
78
{
79
79
// underlying const R is not a range
80
- using View = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
81
- static_assert (HasEnd<View >);
82
- static_assert (!HasConstEnd<View >);
80
+ using ZTV = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
81
+ static_assert (HasEnd<ZTV >);
82
+ static_assert (!HasConstEnd<ZTV >);
83
83
}
84
84
85
85
{
86
86
// Fn cannot invoke on const range
87
- using View = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
88
- static_assert (HasEnd<View >);
89
- static_assert (!HasConstEnd<View >);
87
+ using ZTV = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
88
+ static_assert (HasEnd<ZTV >);
89
+ static_assert (!HasConstEnd<ZTV >);
90
90
}
91
91
return true ;
92
92
}
Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ constexpr bool test() {
102
102
int buffer2[2 ] = {1 , 2 };
103
103
104
104
std::ranges::zip_transform_view v{MakeTuple{}, InputCommonView (buffer1), InputCommonView (buffer2)};
105
- using View = decltype (v);
106
- static_assert (!std::ranges::forward_range<View >);
107
- static_assert (std::ranges::input_range<View >);
108
- static_assert (std::ranges::common_range<View >);
105
+ using ZTV = decltype (v);
106
+ static_assert (!std::ranges::forward_range<ZTV >);
107
+ static_assert (std::ranges::input_range<ZTV >);
108
+ static_assert (std::ranges::common_range<ZTV >);
109
109
110
110
auto it1 = v.begin ();
111
111
auto it2 = v.end ();
You can’t perform that action at this time.
0 commit comments