nxt.container.hybrid_hashmap

Undocumented in source.

Members

Aliases

HybridHashSet
alias HybridHashSet(K, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!K, Allocator = Mallocator, Options options = Options.init) = HybridHashMap!(K, void, hasher, keyEqualPred, Allocator, options)

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

range
alias range = byElement
Undocumented in source.

Enums

UsePrimeCapacityFlag
enum UsePrimeCapacityFlag
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, Options options = Options.init)

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.

Options
struct Options
Undocumented in source.

Templates

defaultKeyEqualPredOf
template defaultKeyEqualPredOf(T)

Default key equality/equivalence predicate for the type T.

Meta