Question : cpp print map
Answered by : omar-yehia
for(const auto& elem : myMap)
{ std::cout << elem.first << " " << elem.second<< "\n";
}
Source : https://stackoverflow.com/questions/14070940/how-can-i-print-out-c-map-values | Last Update : Sun, 25 Dec 22