aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/algorithm.h
diff options
context:
space:
mode:
authorOleg Sidorkin <osidorkin@gmail.com>2022-02-10 16:49:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:36 +0300
commit5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (patch)
treef16a3558ca40d453a1c6a2ed764bd75d64cffade /util/generic/algorithm.h
parentcd33f9aa8461f8e2b0b9e68efbb6bc9856197dc9 (diff)
downloadydb-5ce74d4fee2d42a4b86efc02dfdc704d458760e1.tar.gz
Restoring authorship annotation for Oleg Sidorkin <osidorkin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r--util/generic/algorithm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index badfb88993..da68f2d8eb 100644
--- a/util/generic/algorithm.h
+++ b/util/generic/algorithm.h
@@ -316,25 +316,25 @@ static inline T UniqueBy(T f, T l, const TGetKey& getKey) {
template <class C>
void SortUnique(C& c) {
Sort(c.begin(), c.end());
- c.erase(Unique(c.begin(), c.end()), c.end());
+ c.erase(Unique(c.begin(), c.end()), c.end());
}
template <class C, class Cmp>
void SortUnique(C& c, Cmp cmp) {
Sort(c.begin(), c.end(), cmp);
- c.erase(Unique(c.begin(), c.end()), c.end());
+ c.erase(Unique(c.begin(), c.end()), c.end());
}
template <class C, class TGetKey>
void SortUniqueBy(C& c, const TGetKey& getKey) {
SortBy(c, getKey);
- c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
+ c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
}
template <class C, class TGetKey>
void StableSortUniqueBy(C& c, const TGetKey& getKey) {
StableSortBy(c, getKey);
- c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
+ c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
}
template <class C, class TValue>