blob: 81f319eb7d0528cce5b09ab0a1a509d4abb0d73e [file] [log] [blame]
#pragma once
namespace std {
template <class InputIterator, class T>
T accumulate(InputIterator first, InputIterator last, T init) {
for (; first != last; ++first)
init = init + *first;
return init;
}
} // namespace std