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
commitaa72317474c8df5627f69271ae16f4237e5d3612 (patch)
treed7e630df3de42aabad50283b0f94db75d86ccaa1 /library/cpp/iterator/zip.h
parent5532ae5e5914329418d821bdad60854ab1f3222c (diff)
downloadydb-aa72317474c8df5627f69271ae16f4237e5d3612.tar.gz
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 1 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 ac12ed35fe8..51c7116e38b 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;
- }
-
- TIterator operator++(int) {
- return TIterator{TIteratorState{std::get<I>(Iterators_)++...}};
+ return *this;
}
-
+
+ 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_);