aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/algorithm.h
diff options
context:
space:
mode:
authorkrivokon <krivokon@yandex-team.ru>2022-02-10 16:52:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:05 +0300
commit57cd0ba1b8c1fb6b71ccd886caab0c1f28fe54f5 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic/algorithm.h
parent0a4db2a8ab37872843d41855c2af41be46523ae5 (diff)
downloadydb-57cd0ba1b8c1fb6b71ccd886caab0c1f28fe54f5.tar.gz
Restoring authorship annotation for <krivokon@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r--util/generic/algorithm.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index cfb8b450ae..badfb88993 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) {