Oct 14, 2012 at 7:38pm
No, that is not standard C++. It's probably a compiler extension, which means it will only work in Visual Studio.
The closest thing to a for each loop in C++ is the range-based for loop (C++11), but that is not currently supported by VS.