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
commitdf6128370874866447314ec18d8e67fc7bde40b4 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/iterator.h
parentca2a705e6e39e85df30054d7e806e572de9cfe23 (diff)
downloadydb-df6128370874866447314ec18d8e67fc7bde40b4.tar.gz
Restoring authorship annotation for <kartynnik@yandex-team.ru>. Commit 2 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 71a375a550..19e9d20976 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();
-}
+}