On Tue, 2015-02-10 at 13:18 -0600, Denis Kenzior wrote:
With the current implementation, the item inserted first is
returned. I don't think enforcement of unique keys is required at the
hashmap_insert level.
As long as there is no function to read out more than one of the values
from the hashmap, the hashmap should definitely require keys to be
unique. It's way much simpler to require unique keys as the opposite
situation with multiple values per key as it is really uncommon and
shows that the upper level data structure needs a rethought.
Cheers,
Patrik