map<string, pair<int, float>> data;
for (map<string, pair<int, float>>::iterator i = data.begin(); i != data.end(); i++)
{
// ...
}
We can clean this up a bit by using the
auto
keyword:
map<string, pair<int, float>> data;
for (auto i = data.begin(); i != data.end(); i++)
{
// ...
}
No comments:
Post a Comment