This project has been moved to GitHub. New location: https://github.com/mariusbancila/mfccollectionutilities C++11 has provided support for range-based for loops. They allow iterating over the elements of a range without using an index.
1 2 3 |
std::vector<int> v = {1, 2, 3, 4, 5}; for(auto& e : v) e *= 2; |
However, if you try the following MFC code you get some errors because the compiler is looking for a begin() and end() function…