aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/algorithm.h
diff options
context:
space:
mode:
authorkrivokon <krivokon@yandex-team.ru>2022-02-10 16:52:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:04 +0300
commit0a4db2a8ab37872843d41855c2af41be46523ae5 (patch)
tree3b7e843beafaf28c2b574ca1c127590bcec9d8ef /util/generic/algorithm.h
parenta11cd113a7a73feeaae0e2fc268e9884792482a3 (diff)
downloadydb-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.h16
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) {