nxt.sso_hashmap_or_hashset

Members

Aliases

SSOHashMap
alias SSOHashMap(K, V, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1) = SSOHashMapOrSet!(K, V, Allocator, hasher, smallBinMinCapacity)

Hash map storing keys of type K and values of type V.

SSOHashSet
alias SSOHashSet(K, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1) = SSOHashMapOrSet!(K, void, Allocator, hasher, smallBinMinCapacity)

Hash map storing keys of type K.

Enums

MapInsertionStatus
enum MapInsertionStatus

Map insertion status.

SetInsertionStatus
enum SetInsertionStatus

Set insertion status.

Functions

byElement
auto byElement(inout(SomeHashMapOrSet) c)

Returns forward range that iterates through the elements of c.

filtered
SomeHashMapOrSet filtered(SomeHashMapOrSet x)
intersectWith
auto intersectWith(C1 x, const(C2) y)
intersectedWith
auto intersectedWith(C1 x, C2 y)
removeAllMatching
void removeAllMatching(SomeHashMapOrSet x)

Remove all elements in x matching predicate. TODO move to container_algorithm.d.

Structs

SSOHashMapOrSet
struct SSOHashMapOrSet(K, V = void, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1, uint capacityScaleNumerator = 2, uint capacityScaleDenominator = 1)

Hash set (or map) storing (key) elements of type K and values of type V.

Meta