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.
It's not clear what you want. The list contain maps so you can only "push back" maps.
maps contain pairs. Your code would work for a list of pairs.