skarupke / flat_hash_map

A very fast hashtable
1.69k stars 186 forks source link

Fix iterator on empty map #8

Open Dllieu opened 6 years ago

smessmer commented 5 years ago

This is actually unreachable code since the loop never exits if it doesn't call its return. Not saying I have a good understanding of if the current version of the code handles empty maps correctly or not though. My guess would be a sentinel element that ensures it always finds an element that has has_value()==true and returns?