aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/algorithm.h
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/algorithm.h
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r--util/generic/algorithm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index 88f6e25021..badfb88993 100644
--- a/util/generic/algorithm.h
+++ b/util/generic/algorithm.h
@@ -337,11 +337,11 @@ void StableSortUniqueBy(C& c, const TGetKey& getKey) {
c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
}
-template <class C, class TValue>
-void Erase(C& c, const TValue& value) {
- c.erase(std::remove(c.begin(), c.end(), value), c.end());
-}
-
+template <class C, class TValue>
+void Erase(C& c, const TValue& value) {
+ c.erase(std::remove(c.begin(), c.end(), value), c.end());
+}
+
template <class C, class P>
void EraseIf(C& c, P p) {
c.erase(std::remove_if(c.begin(), c.end(), p), c.end());