I know that in order to loop through a map in C++11 I can use the following code:
std::mymap<std::string, myclass>
for(auto item : mymap)
{
// code here
}
What exactly is referred to by item
? Is it the map key? The value that is currently accessed? If I want to do something with the value, how do I access it?