traversing map cpp

C++
    for (auto i : m) 
        cout << i.first << "   " << i.second << endl; 
Source

Also in C++: