I have an unordered map with a string and a vector of strings. I want to go to a specific key and iterate over all it's values.
Ex. Go to key 400 and iterate over 1, 2, and 3.
{
400 -> [1,2,3],
200 -> [],
13 -> [10,30]
}
std::unordered_map<std::string, std::vector<std::string>> mymap;
myKey = 400;
for(auto elem: mymap){
if(elem.first == myKey){
for(auto elem2: elem.first.size()){
//do stuff here
}
}
}