I think this is to ensure compatibility with a regular card and install.
But I still find it useful in principle. If the range of values is deleted, you want to remove them from the collection. But the usual use case looks up (a million times more often than insert / delete), and it does not overlap, so the disordered version is good.
How can he shoot you? This is no different from erasing each of them in a loop. Ah, a simple start, the final range of direct traversal will not work, so do you think that the supplied function does not do everything it takes to do everything right, but does the same forward movement that will work on the map, but breaks unordered_map?
Yes, right?
source share