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
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/generic/algorithm.h
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 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 badfb88993..88f6e25021 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());