iterate through unordered_map c++ without range based for loop code example
Example: how to iterate over unordered_map c++
for(auto it : umap){
cout<< it->first << " " << it->second << endl;
}
/*
umap = [
{1 , "Hello"},
{2 , "world"}
]
*/
/*
Output :
1 Hello
2 World
*/