TrackingAutoHashMap
A wrapper around std.HashMapUnmanaged that stores a used flag next
to the value to allow for removal on unused values.
Calling TrackingAutoHashMap.reset gives a list of keys that has not been
accessed since the last call to TrackingAutoHashMap.reset.
Parameters
- K:type
- type
- V:type
- type
- tracking:TrackingKind
- TrackingKind
- retainToken:type
- type
Types
Functions
- deinit
See
HashMap.deinit- count
See
HashMap.count- iterator
See
HashMap.iterator- put
See
HashMap.put- putNoClobber
See
HashMap.putNoClobber- fetchPut
See
HashMap.fetchPut- getPtr
See
HashMap.getPtr- get
See
HashMap.get- getOrPut
See
HashMap.getOrPut- remove
See
HashMap.remove- fetchRemove
See
HashMap.fetchRemove- setUsed
Set used for a
value_ptrfrom an iteratorEntryorgetPtr.- reset
Resets and removes all unused values. It you need access to the removed key and values,