iterators iterate (traverse) the container across the container elements, so you could:
1 2 3 4 5 6 7 8 9 10 11 12 13
std::map<int,double>::const_iterator itr;
// to reach the key and value of any given map element
itr->first; itr->second;
//or
(*itr).first; (*itr).second;
//another alternative to reach the key/value of any std::map element would be to use range loops (c++11):
std::map<int,double> myMap;
for (constauto& elem : myMap)
{
elem.first;//key
elem.second;//value
}