nxt.open_hashmap_or_hashset

Undocumented in source.

Members

Aliases

OpenHashMap
alias OpenHashMap(K, V, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!K, alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false) = OpenHashMapOrSet!(K, V, hasher, keyEqualPred, Allocator, borrowChecked, useSmallLinearSearch, usePrimeCapacity)

Immutable hash map storing keys of type K and values of type V.

OpenHashSet
alias OpenHashSet(K, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!K, alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false) = OpenHashMapOrSet!(K, void, hasher, keyEqualPred, Allocator, borrowChecked, useSmallLinearSearch, usePrimeCapacity)

Immutable hash set storing keys of type K.

range
alias range = byElement
Undocumented in source.

Enums

isHoleable
eponymoustemplate isHoleable(T)

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

Functions

byElement
auto byElement(Table c)
byKey
auto byKey(Table c)
byKeyValue
auto byKeyValue(Table c)
byValue
auto byValue(Table c)
filtered
Table filtered(Table 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(Table x)

Remove all elements in x matching pred.

Structs

ByLvalueElement
struct ByLvalueElement(Table)

Range over elements of l-value instance of this.

OpenHashMapOrSet
struct OpenHashMapOrSet(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)

Hash table/map (or set) with open-addressing, storing (key) elements of type K and values of type V.

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