Aug 19, 2012 at 6:28pm
Heloo guys, i have this list of maps
list<map<int,int>> myList
how do i pushback 2 integers values in this list?
i tried myList.push_back(pair<int,int>(1,2));
and did not work.
thank you and i'll be waiting for the answer.
Aug 19, 2012 at 7:01pm
It's not clear what you want. The list contain maps so you can only "push back" maps.
Aug 19, 2012 at 9:09pm
maps contain pairs. Your code would work for a list of pairs.