diff options
author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/generic/algorithm.h | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm.h')
-rw-r--r-- | util/generic/algorithm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index caf5edc64ba..badfb889933 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -452,7 +452,7 @@ template <class T> static inline void Rotate(T f, T m, T l) { std::rotate(f, m, l); } - + template <typename It, typename Val> Val Accumulate(It begin, It end, Val val) { // std::move since C++20 @@ -463,7 +463,7 @@ template <typename It, typename Val, typename BinOp> Val Accumulate(It begin, It end, Val val, BinOp binOp) { // std::move since C++20 return std::accumulate(begin, end, std::move(val), binOp); -} +} template <typename C, typename Val> Val Accumulate(const C& c, Val val) { |