OpenHashSet.this

Initializes the hash set with the given initial capacity.

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

Parameters

initialCapacity
Type: size_t

the initial capacity for the hash set

Meta