bearophile <bearophileh...@lycos.com> wrote:

In nothrow functions you can use a different method, like "discard" (or a similar name less intuitive than remove), that's like remove, but it doesn't throw and just returns false when the key was absent. The idea is to use the safer method by default and the less safe one as a performance optimization (or where you are sure you want that semantics) in the other places.

Please elucidate, what is unsafe about deleting something that isn't there?

--
Simen

Reply via email to