Constructs the hash table from a forward range.
Range type.
Forward range.
Allocator.
Precondition: allocator !is null.
alias KeyValue = HashTable!(string, int).KeyValue; KeyValue[2] range = [KeyValue("one", 1), KeyValue("two", 2)]; auto hashTable = HashTable!(string, int)(range[]); assert(hashTable["one"] == 1); assert(hashTable["two"] == 2);
See Implementation
Constructs the hash table from a forward range.