insert elements to multidimensional map c++ code example Example: map of maps c++ map <typename,map<typename,typename>> mp; map[key1][key2]=values