I have already seen the source code, When erase it do not set the key to null and I guess it's in order to keep the chain. This cell will not be occupied by others, resulting in a larger hash table until it is rewritten.
In our project, we assign a fixed-size hash table at initialization time and when running, it can not be changed.
Is there a fixed-size hash table implement
Or How to handle the deletion ?