diff options
author | yarchi <yarchi@yandex-team.ru> | 2022-02-10 16:52:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:07 +0300 |
commit | 26e5ebf156c32ad632ed87dc310e8d21b2038ebd (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic/algorithm.h | |
parent | c4c46bcc4d08e514ebac51ab1cc6d92e56d38746 (diff) | |
download | ydb-26e5ebf156c32ad632ed87dc310e8d21b2038ebd.tar.gz |
Restoring authorship annotation for <yarchi@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r-- | util/generic/algorithm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index 89b6e108cb..badfb88993 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -627,16 +627,16 @@ template <class T1, class T2, class O> static inline void Transform(T1 b, T1 e, T2 o, O f) { std::transform(b, e, o, f); } - + template <class T1, class T2, class T3, class O> static inline void Transform(T1 b1, T1 e1, T2 b2, T3 o, O f) { std::transform(b1, e1, b2, o, f); } -template <class T, class V> +template <class T, class V> inline typename std::iterator_traits<T>::difference_type Count(T first, T last, const V& value) { return std::count(first, last, value); -} +} template <class TContainer, class TValue> static inline auto Count(const TContainer& container, const TValue& value) { |