Skip to content

Commit 4e5713e

Browse files
committed
adds zip iter ->
1 parent 38b3f70 commit 4e5713e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

zip.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ namespace iter {
8686
*this->iter},
8787
*this->rest_iter);
8888
}
89+
90+
auto operator->() -> ArrowProxy<decltype(**this)> {
91+
return {**this};
92+
}
93+
8994
};
9095

9196
Iterator begin() {
@@ -137,6 +142,10 @@ namespace iter {
137142
std::tuple<> operator*() {
138143
return std::tuple<>{};
139144
}
145+
146+
auto operator->() -> ArrowProxy<decltype(**this)> {
147+
return {**this};
148+
}
140149
};
141150

142151
Iterator begin() {

0 commit comments

Comments
 (0)