Check out example codes for "how to use map of a map in c++". It will help you in understanding the concepts better.

Code Example 1

map <typename,map<typename,typename>> mp;
mp[key1].insert(make_pair(key2,value));

Learn ReactJs, React Native from akashmittal.com