aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/iterator/zip.h
diff options
context:
space:
mode:
authorNikita Petrenko <npetrenko97@gmail.com>2022-02-10 16:50:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:57 +0300
commitfd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/iterator/zip.h
parentaa72317474c8df5627f69271ae16f4237e5d3612 (diff)
downloadydb-fd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3.tar.gz
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/iterator/zip.h')
-rw-r--r--library/cpp/iterator/zip.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/iterator/zip.h b/library/cpp/iterator/zip.h
index 51c7116e38..ac12ed35fe 100644
--- a/library/cpp/iterator/zip.h
+++ b/library/cpp/iterator/zip.h
@@ -58,16 +58,16 @@ namespace NPrivate {
TValue operator*() const {
return {*std::get<I>(Iterators_)...};
}
-
- TIterator& operator++() {
+
+ TIterator& operator++() {
(++std::get<I>(Iterators_), ...);
- return *this;
+ return *this;
+ }
+
+ TIterator operator++(int) {
+ return TIterator{TIteratorState{std::get<I>(Iterators_)++...}};
}
-
- TIterator operator++(int) {
- return TIterator{TIteratorState{std::get<I>(Iterators_)++...}};
- }
-
+
bool operator!=(const TSentinel& other) const {
if constexpr (LimitByFirstContainer) {
return std::get<0>(Iterators_) != std::get<0>(other.Iterators_);