OpenHashSet.this

Initializes the hash set with the given initial capacity.

  1. this(Allocator allocator)
  2. this(size_t initialCapacity, Allocator allocator)
    struct OpenHashSet(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 ((initialCapacity & initialCapacity - 1) == 0, "initialCapacity must be a power of 2"); }
  3. this(size_t initialCapacity)

Parameters

initialCapacity
Type: size_t

the initial capacity for the hash set

Meta