|
|
|
|
|
by quinnftw
3445 days ago
|
|
A few issues with this implementation: Is it really nessecary to allocate all of the hash buckets up front? Why not initialize them to null and then allocate them as you need? Why not use some kind of managed container like std vector to store the hash buckets? This removes the need to do explicit memory management. Why not use std forward_list instead of rolling your own linked list? Again, this will reduce the amount of code and save you from having to do manual memory management |
|