print std map
#include <iostream>
#include <map>
int main() {
std::map<int, std::string> myMap;
// Inserting key-value pairs into the map
myMap[1] = "One";
myMap[2] = "Two";
myMap[3] = "Three";
myMap[4] = "Four";
// Printing the contents of the map using an iterator
std::cout << "Map Content:" << std::endl;
for (auto it = myMap.begin(); it != myMap.end(); ++it) {
std::cout << "Key: " << it->first << ", Value: " << it->second << std::endl;
}
return 0;
}