how to iterater map of sets in c++
map<string, set<string>> mp;
for (auto const& pair : mp) {
cout << pair.first << ": ";
for (auto const& elem : pair.second) {
cout << elem << ", ";
}
cout << "\n";
}