No, but consider that both looping over the mapping and copying the mapping are O(n), but running through the loop has much higher constant.
/ Mirar
Previous text:
2003-01-30 21:35: Subject: Multiset iterator
It typically means a complete mapping copy every time the loop is run. Not something that always can be ignored, I think.
Yes, it'd be easy to do "foreach(m + (<>); int x;) ..." to get a copy-on-write when one want that.
/ Martin Stjernholm, Roxen IS