Check out example codes for "how to iterate over unordered_map c++". It will help you in understanding the concepts better.

Code Example 1

for(auto it : umap){
  cout<< it->first << " " << it->second << endl;
}

/*
umap = [
	{1 , "Hello"},
    {2 , "world"}
]
*/


/*
 Output :
 1 Hello
 2 World
*/

Learn ReactJs, React Native from akashmittal.com