aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authordivankov <divankov@yandex-team.ru>2022-02-10 16:48:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:05 +0300
commit5b8d95df2f0cfca4d3f5499a4259aa2050ef1571 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic
parentcd88d7933255d8690da34c7b1f7427cf2bb3ae23 (diff)
downloadydb-5b8d95df2f0cfca4d3f5499a4259aa2050ef1571.tar.gz
Restoring authorship annotation for <divankov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/algorithm.h4
-rw-r--r--util/generic/hash.h4
-rw-r--r--util/generic/intrlist_ut.cpp4
-rw-r--r--util/generic/strbase.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index 54b6033a8c..badfb88993 100644
--- a/util/generic/algorithm.h
+++ b/util/generic/algorithm.h
@@ -63,7 +63,7 @@ static inline void SortBy(TContainer& container, const TGetKey& getKey) {
SortBy(container.begin(), container.end(), getKey);
}
-template <class T>
+template <class T>
static inline void StableSort(T f, T l) {
std::stable_sort(f, l);
}
@@ -93,7 +93,7 @@ static inline void StableSortBy(TContainer& container, const TGetKey& getKey) {
StableSortBy(container.begin(), container.end(), getKey);
}
-template <class T>
+template <class T>
static inline void PartialSort(T f, T m, T l) {
std::partial_sort(f, m, l);
}
diff --git a/util/generic/hash.h b/util/generic/hash.h
index 07632d686d..e46db21fa9 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -743,7 +743,7 @@ public:
template <class ForwardIterator>
void insert_unique(ForwardIterator f, ForwardIterator l, std::forward_iterator_tag) {
difference_type n = std::distance(f, l);
-
+
reserve(num_elements + n);
for (; n > 0; --n, ++f)
insert_unique_noresize(*f);
@@ -752,7 +752,7 @@ public:
template <class ForwardIterator>
void insert_equal(ForwardIterator f, ForwardIterator l, std::forward_iterator_tag) {
difference_type n = std::distance(f, l);
-
+
reserve(num_elements + n);
for (; n > 0; --n, ++f)
emplace_equal_noresize(*f);
diff --git a/util/generic/intrlist_ut.cpp b/util/generic/intrlist_ut.cpp
index 4972c03638..eff7cdf2ee 100644
--- a/util/generic/intrlist_ut.cpp
+++ b/util/generic/intrlist_ut.cpp
@@ -246,7 +246,7 @@ static void TestCutFront(int N, int M) {
}
TMyList::Cut(l.Begin(), it, l2.End());
- CheckIterationAfterCut(l2, l, N, M);
+ CheckIterationAfterCut(l2, l, N, M);
}
static void TestCutBack(int N, int M) {
@@ -259,7 +259,7 @@ static void TestCutBack(int N, int M) {
}
TMyList::Cut(it, l.End(), l2.End());
- CheckIterationAfterCut(l, l2, N, M);
+ CheckIterationAfterCut(l, l2, N, M);
}
void TListTest::TestCut() {
diff --git a/util/generic/strbase.h b/util/generic/strbase.h
index 44a514aa55..ab39fc7537 100644
--- a/util/generic/strbase.h
+++ b/util/generic/strbase.h
@@ -343,7 +343,7 @@ public:
friend bool operator==(const TCharType* pc, const TSelf& s) noexcept {
return equal(pc, s);
}
-
+
template <typename TDerived2, typename TTraits2>
friend bool operator!=(const TSelf& s1, const TStringBase<TDerived2, TChar, TTraits2>& s2) noexcept {
return !(s1 == s2);
@@ -366,7 +366,7 @@ public:
friend bool operator<(const TSelf& s1, const TStringBase<TDerived2, TChar, TTraits2>& s2) noexcept {
return compare(s1, s2) < 0;
}
-
+
friend bool operator<(const TSelf& s1, TStringView s2) noexcept {
return compare(s1, s2) < 0;
}