The table_
array will be uninitialized in your current design, just like if you say int n;
. However, you can value-initialize the array (and thus zero-initialize each member) in the constructor:
struct hash_map
{
hash_map()
: table_()
{
}
// ...
};