nxt.container.hybrid_hashmap

Undocumented in source.

Members

Aliases

HybridHashSet
alias HybridHashSet(K, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!K, Allocator = Mallocator, BorrowCheckFlag borrowCheckFlag = BorrowCheckFlag.no, uint linearSearchMaxSize = 64, PrimeCapacityFlag primeCapacityFlag = PrimeCapacityFlag.no) = HybridHashMap!(K, void, hasher, keyEqualPred, Allocator, borrowCheckFlag, linearSearchMaxSize, primeCapacityFlag)

Hash set with in-place open-addressing, storing keys (elements) of type K.

range
alias range = byElement
Undocumented in source.

Enums

PrimeCapacityFlag
enum PrimeCapacityFlag
Undocumented in source.
isHoleable
eponymoustemplate isHoleable(T)

Is true iff T has a specific value dedicated to representing holes (removed/erase) values.

Functions

byElement
auto byElement(SomeMap c)
byKey
auto byKey(SomeMap c)
byKeyValue
auto byKeyValue(SomeMap c)
byValue
auto byValue(SomeMap c)
filtered
SomeMap filtered(SomeMap x)
intersectWith
auto intersectWith(C1 x, const(C2) y)
intersectedWith
auto intersectedWith(C1 x, C2 y)
make
T make(ulong value)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAllMatching
size_t removeAllMatching(SomeMap x)

Remove all elements in x matching pred.

Structs

ByLvalueElement
struct ByLvalueElement(SomeMap)

Range over elements of l-value instance of this.

HybridHashMap
struct HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, BorrowCheckFlag borrowCheckFlag = BorrowCheckFlag.no, uint linearSearchMaxSize = 64, PrimeCapacityFlag primeCapacityFlag = PrimeCapacityFlag.no)

Hash table/map with open-addressing and hybrid storage, storing keys of type K and values of type V. Setting V to void turns the map into a set.

Templates

defaultKeyEqualPredOf
template defaultKeyEqualPredOf(T)

Default key equality/equivalence predicate for the type T.

Variables

isAddress
enum bool isAddress(T);

Is true iff T is a memory address (either a class or a pointer).

Meta