News for hackers. Stuff that matters.
Re:Iterators: Signs of Weakness in Object-Oriented Languages by Figs on Tuesday May 04, 2010 @08:30PM (#1319910)
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

There are no comments on this comment yet.