Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 << "
";
     }
 
PREVIOUS NEXT
Tagged: #iterater #map #sets
ADD COMMENT
Topic
Name
2+6 =