diff options
author | kartynnik <kartynnik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
commit | ca2a705e6e39e85df30054d7e806e572de9cfe23 (patch) | |
tree | fb7cc52bc2579366b2796a24f91f6df7a223f9ab /util/generic/iterator.h | |
parent | e20e2b362f0232ed5a389db887e6e27e7763af18 (diff) | |
download | ydb-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.h | 6 |
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(); -} +} |