diff options
author | krivokon <krivokon@yandex-team.ru> | 2022-02-10 16:52:04 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:04 +0300 |
commit | 0a4db2a8ab37872843d41855c2af41be46523ae5 (patch) | |
tree | 3b7e843beafaf28c2b574ca1c127590bcec9d8ef /util/generic/algorithm.h | |
parent | a11cd113a7a73feeaae0e2fc268e9884792482a3 (diff) | |
download | ydb-0a4db2a8ab37872843d41855c2af41be46523ae5.tar.gz |
Restoring authorship annotation for <krivokon@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r-- | util/generic/algorithm.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index badfb88993..cfb8b450ae 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -665,16 +665,16 @@ static inline std::pair<I1, I2> Mismatch(I1 b1, I1 e1, I2 b2, P p) { return std::mismatch(b1, e1, b2, p); } -template <class RandomIterator> -static inline void NthElement(RandomIterator begin, RandomIterator nth, RandomIterator end) { +template <class RandomIterator> +static inline void NthElement(RandomIterator begin, RandomIterator nth, RandomIterator end) { std::nth_element(begin, nth, end); -} - -template <class RandomIterator, class Compare> -static inline void NthElement(RandomIterator begin, RandomIterator nth, RandomIterator end, Compare compare) { +} + +template <class RandomIterator, class Compare> +static inline void NthElement(RandomIterator begin, RandomIterator nth, RandomIterator end, Compare compare) { std::nth_element(begin, nth, end, compare); -} - +} + // no standard implementation until C++14 template <class I1, class I2> static inline std::pair<I1, I2> Mismatch(I1 b1, I1 e1, I2 b2, I2 e2) { |