Hi everyone,

I was wondering if it was possible to remove an element while iterating over the elements of a hashtable. As saw that it wasn't while using the OPAL_HASHTABLE_FOREACH macro, and I suppose it's because of the possible loss of the current next element. But how about if the element have already been iterated over? If I save a pointer to the previous element, it is safe to remove it from the hashtable?

Thank you,

Clément FOYER

_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to