c++ map loop through key value

for (auto const& [key, val] : myMap) { // key is the key // val is the value // Do something with key and val }