I'm trying to use a map within a map using the following code;
map<map <int,int>,int > multimap;
Now I want to insert the data such that multimap[1]--->(2,3), multimap[4]--->(5,6). I have been trying to insert it the following way but i guess there is a syntax error which I can't seem to figure out!
multimap.insert(pair<int,pair<int,int>(2,3)>(1));
Any help will be appreciated. And after adding, how would I display the values by using an iterator?
map<int, pair<int, int>> multimapsince you want a single value that maps to a pair of values?<operator.