
2 Feb
2009
2 Feb
'09
4:11 p.m.
AMDG Alan Patterson wrote:
Doesn't a += interface make an accumulate interface like:
std::accumulate(data.begin(), data.end(), acc);
more appealing than :
std::for_each(data.begin(), data.end(), acc);
std::accumulate uses result = result + *iter; not result += *iter; In Christ, Steven Watanabe