Answers for "c++ iterate map using auto"

C++
0

c++ iterate map using auto

for (auto& [key, value]: mymap) {
        std::cout << key << " => " << value << '\n';
}
Posted by: Guest on April-22-2022

Browse Popular Code Answers by Language