HashSet.this

Constructs a HashSet with an initial bucket count of bucketCount. bucketCount must be a power of two.

  1. this(Allocator allocator)
  2. this(size_t bucketCount, Allocator allocator)
    struct HashSet(T, Allocator = Mallocator, alias hashFunction = generateHash!T, bool supportGC = shouldAddGCRange!T)
    this
    (
    ,
    Allocator allocator
    )
    in { assert (allocator !is null, "Allocator must not be null"); assert ((bucketCount & (bucketCount - 1)) == 0, "bucketCount must be a power of two"); }
  3. this(size_t bucketCount)

Meta