Cpp-Primer icon indicating copy to clipboard operation
Cpp-Primer copied to clipboard

ex11_31 for the same elem

Open Layty opened this issue 5 years ago • 1 comments

If the multimap has same elem like that

    std::multimap<string, string> authors{
        { "alan", "DMA" },
        { "pezy", "LeetCode" },
        { "alan", "CLRS" },
        { "wang", "FTP" },
        { "pezy", "CP5" },
        { "pezy", "CP5" },
        { "wang", "CPP-Concurrency" }
    };

It will just erase the first { "pezy", "CP5" },

Layty avatar Jan 14 '20 13:01 Layty

Maybe the ‘break’ should be removed.

pezy avatar Jan 14 '20 14:01 pezy