aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/iterator.h
diff options
context:
space:
mode:
authorkartynnik <kartynnik@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commitca2a705e6e39e85df30054d7e806e572de9cfe23 (patch)
treefb7cc52bc2579366b2796a24f91f6df7a223f9ab /util/generic/iterator.h
parente20e2b362f0232ed5a389db887e6e27e7763af18 (diff)
downloadydb-ca2a705e6e39e85df30054d7e806e572de9cfe23.tar.gz
Restoring authorship annotation for <kartynnik@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/iterator.h')
-rw-r--r--util/generic/iterator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/iterator.h b/util/generic/iterator.h
index 19e9d20976..71a375a550 100644
--- a/util/generic/iterator.h
+++ b/util/generic/iterator.h
@@ -127,13 +127,13 @@ public:
return TIterator();
}
};
-
+
/**
* Transform given reverse iterator into forward iterator pointing to the same element.
*
* @see http://stackoverflow.com/a/1830240
*/
-template <class TIterator>
+template <class TIterator>
auto ToForwardIterator(TIterator iter) {
return std::next(iter).base();
-}
+}