I meant the for_each algorithm would defeat the purpose of a range-based for loop. It would essentially be the same as a normal loop.
Type: Posts; User: Elysia
I meant the for_each algorithm would defeat the purpose of a range-based for loop. It would essentially be the same as a normal loop.
Heh. Well, it's possible to do this, but doesn't it defeat the whole purpose of a range-based for loop?
But at least we have auto, so the iterator part can be killed.
And I'd rather it be longer...
Well, regardless what others think, I like it. It's a shame Visual C++ doesn't support range-based foor loops yet.
Now all we need is some way to dump all the common code we use into every new...