diff options
author | malets <malets@yandex-team.ru> | 2022-02-10 16:52:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:01 +0300 |
commit | 9fb6b07ce98b16ba076a7eaf8d90c335276df153 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic | |
parent | 4290f1d64573e159d3a12d374b93a837a68c7869 (diff) | |
download | ydb-9fb6b07ce98b16ba076a7eaf8d90c335276df153.tar.gz |
Restoring authorship annotation for <malets@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/algorithm.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index 3909d7a270..badfb88993 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -387,51 +387,51 @@ template <class TI, class TO, class TP> static inline TO RemoveCopyIf(TI f, TI l, TO t, TP p) { return std::remove_copy_if(f, l, t, p); } - + template <class TI, class TO> static inline TO ReverseCopy(TI f, TI l, TO t) { return std::reverse_copy(f, l, t); } -template <class TI1, class TI2, class TO> -static inline TO SetUnion(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { +template <class TI1, class TI2, class TO> +static inline TO SetUnion(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { return std::set_union(f1, l1, f2, l2, p); -} - -template <class TI1, class TI2, class TO, class TC> -static inline TO SetUnion(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { +} + +template <class TI1, class TI2, class TO, class TC> +static inline TO SetUnion(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { return std::set_union(f1, l1, f2, l2, p, c); -} - -template <class TI1, class TI2, class TO> -static inline TO SetDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { +} + +template <class TI1, class TI2, class TO> +static inline TO SetDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { return std::set_difference(f1, l1, f2, l2, p); -} - -template <class TI1, class TI2, class TO, class TC> -static inline TO SetDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { +} + +template <class TI1, class TI2, class TO, class TC> +static inline TO SetDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { return std::set_difference(f1, l1, f2, l2, p, c); -} - -template <class TI1, class TI2, class TO> -static inline TO SetSymmetricDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { +} + +template <class TI1, class TI2, class TO> +static inline TO SetSymmetricDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { return std::set_symmetric_difference(f1, l1, f2, l2, p); -} - -template <class TI1, class TI2, class TO, class TC> -static inline TO SetSymmetricDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { +} + +template <class TI1, class TI2, class TO, class TC> +static inline TO SetSymmetricDifference(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { return std::set_symmetric_difference(f1, l1, f2, l2, p, c); -} - -template <class TI1, class TI2, class TO> -static inline TO SetIntersection(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { +} + +template <class TI1, class TI2, class TO> +static inline TO SetIntersection(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p) { return std::set_intersection(f1, l1, f2, l2, p); -} - -template <class TI1, class TI2, class TO, class TC> -static inline TO SetIntersection(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { +} + +template <class TI1, class TI2, class TO, class TC> +static inline TO SetIntersection(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { return std::set_intersection(f1, l1, f2, l2, p, c); -} +} template <class I, class T> static inline void Fill(I f, I l, const T& v) { |