a std.experimental.allocator.RCIAllocator or std.experimental.allocator.RCISharedAllocator allocator object
an associative array
Complexity: O(m), where m is the number of (key, value) pairs in the associative array.
import std.algorithm.comparison : equal; import stdx.collections.array : Array; { auto h = Hashtable!(int, int)([1 : 10]); assert(equal(h.keys(), [1])); assert(equal(h.values(), [10])); } { auto h = immutable Hashtable!(int, int)([1 : 10]); assert(equal(h.values(), Array!int([10]))); }
Constructs a qualified hashtable out of an associative array that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied.