Hi everybody,
does anyone knows is there any way to have an implicit iteration
counter in std::for_each ?
e.g. std::for_each(c.begin(), c.end(), boost::bind(&C::set_id, _1,
<iteration_counter>));
so the first object will have id of 0, second of 1 and so on ?..
Best regards, Paul Sujkov