25 Jun
2003
25 Jun
'03
12:56 p.m.
Peter Dimov wrote:
I have to repeat my usual advice here, use the correct algorithm (even if it's not standard).
template
void for_each_pair(It first, It last, F f) { for(; first != last; ++first) f(first->first, first->second); } for_each_pair(m.begin(), m.end(), std::cout << _2 << " ");
OK, that's a solution. Many thanks, Markus -- Build your own Expression Template Library with Daixtrose! Visit http://daixtrose.sourceforge.net/