associative arrays: iteration is finally here
Simen Kjaeraas
simen.kjaras at gmail.com
Thu Oct 29 14:06:52 PDT 2009
bearophile <bearophileHUGS at 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
More information about the Digitalmars-d
mailing list