DenseHashSet.this

A constructor based on interators which provide the values to add to the set. With a DenseHashSet, the key and value types used for the DenseHashTable are the same.

  1. this(size_t expected_max_items_in_table, HashFcn hashFcn, EqualKey equalKey)
  2. this(InputIterator f, InputIterator l, Value empty_key_val, size_t expected_max_items_in_table, HashFcn hashFcn, EqualKey equalKey)
    class DenseHashSet(Value, HashFcn, EqualKey)
    this
    (
    InputIterator
    )
    (
    InputIterator f
    ,
    InputIterator l
    ,,,
    HashFcn hashFcn
    ,
    EqualKey equalKey
    )
    if (
    is(typeof(*(InputIterator.init)) : Value)
    )

Parameters

InputIterator

Compile-time type parameter of the iterators that support the "*" operator.

f InputIterator

Iterator for the first value.

l InputIterator

Iterator for the last value.

empty_key_val Value

An unused value that can be used to represent an "empty" hash slot.

expected_max_items_in_table size_t

Sets an initial size to help avoid additional memory allocations.

hashFcn HashFcn

A function for computin the hash of Value.

equalKey EqualKey

A function to determine if two Values are equal.

Meta