diff options
author | luxaeterna <luxaeterna@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
commit | 2c76d348a3be51f0875ddeaad6b2ccda604dee0f (patch) | |
tree | 054cd500011b8b97634220fc570d32a1d45fcc35 /util/generic/algorithm.h | |
parent | 9f848110233b3807d5dd3ae5479b3957d791892c (diff) | |
download | ydb-2c76d348a3be51f0875ddeaad6b2ccda604dee0f.tar.gz |
Restoring authorship annotation for <luxaeterna@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r-- | util/generic/algorithm.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index badfb88993..7e73f03f82 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -724,11 +724,11 @@ bool IsSorted(ForwardIt begin, ForwardIt end, Compare comp) { return std::is_sorted(begin, end, comp); } -template <class TIterator, typename TGetKey> -bool IsSortedBy(TIterator begin, TIterator end, const TGetKey& getKey) { - return IsSorted(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); }); -} - +template <class TIterator, typename TGetKey> +bool IsSortedBy(TIterator begin, TIterator end, const TGetKey& getKey) { + return IsSorted(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); }); +} + template <class It, class Val> void Iota(It begin, It end, Val val) { std::iota(begin, end, val); |