J
Jef Driesen
Is there an STL algorithm that does something like
for (iterator i = begin(); i != end(); ++i)
f(*i,value);
where f results in the expression *i += value. I already found the
algorithm 'transform' with the 'plus' function object, but it does
evaluate to *i = *i + value. And this is not exactly what I want.
for (iterator i = begin(); i != end(); ++i)
f(*i,value);
where f results in the expression *i += value. I already found the
algorithm 'transform' with the 'plus' function object, but it does
evaluate to *i = *i + value. And this is not exactly what I want.