|
|
|
|
|
by Figs
5886 days ago
|
|
Of course, C++ already has std::accumulate, which is basically the same thing as a general fold or a summation, depending on which version you use. So, there isn't really much of a reason to write sum manually at all. :p http://www.sgi.com/tech/stl/accumulate.html |
|