Struct std::HashMap
generic<K, V> struct HashMap {
?&heap K keys;
?&heap V vals;
?&heap unsigned int hashes;
?&heap unsigned char states;
unsigned long cap;
unsigned long len;
unsigned long tombstones;
}Fields
MAP_EMPTY_ / MAP_FULL_ / MAP_TOMB_
0 or a power of two
live entries
removed slots not yet reclaimed
Methods
empty, no allocation
room for cap entries
insert or overwrite; 0 on OOM
null if missing
the removed value, or null
drop every entry, keep the table
room for n entries without resizing
= drop()