HashMap.capacity

when capacity == 0 - next put for new key can trigger resize

struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true)
pure const @safe @nogc
capacity
()