Documentation
¶
Overview ¶
Package intmap contains a fast hashmap implementation for maps with keys of any integer type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntKey ¶
type IntKey interface { ~int | ~uint | ~int64 | ~uint64 | ~int32 | ~uint32 | ~int16 | ~uint16 | ~int8 | ~uint8 | ~uintptr }
IntKey is a type constraint for values that can be used as keys in Map
type Map ¶
Map is a hashmap where the keys are some any integer type.
func New ¶
New creates a new map with keys being any integer subtype. The map can store up to the given capacity before reallocation and rehashing occurs.
func (*Map[K, V]) Clear ¶
func (m *Map[K, V]) Clear()
Clear removes all items from the map, but keeps the internal buffers for reuse.
Click to show internal directories.
Click to hide internal directories.