diff options
| author | divankov <[email protected]> | 2022-02-10 16:48:05 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:05 +0300 |
| commit | cd88d7933255d8690da34c7b1f7427cf2bb3ae23 (patch) | |
| tree | 39e40694c8b41674a17b90f034e31d7cfcf20142 /util/generic | |
| parent | 37a2795395ba606e239b750ff2afb17905274ec4 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
| -rw-r--r-- | util/generic/algorithm.h | 4 | ||||
| -rw-r--r-- | util/generic/hash.h | 4 | ||||
| -rw-r--r-- | util/generic/intrlist_ut.cpp | 4 | ||||
| -rw-r--r-- | util/generic/strbase.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index badfb889933..54b6033a8c0 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 e46db21fa97..07632d686de 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 eff7cdf2eee..4972c03638c 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 ab39fc7537f..44a514aa553 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; } |
