4 ms·
>"for (std::map<int, BlaBla>::iterator it = myMap.begin(); it != myMap.end(); it++)")" All you really needed is: for (auto it : myMap) and you still get co
by FpUser 4y ago
>"for (std::map<int, BlaBla>::iterator it = myMap.begin(); it != myMap.end(); it++)")"
All you really needed is:
for (auto it : myMap)
and you still get compile type safety
- Yoric 4y agoWell, in 2005, you didn't.