The OpenD Programming Language

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)
    static if(stateSize!Allocator != 0)
    this
    (,
    Allocator allocator
    )
  3. this(size_t initialCapacity)

Parameters

initialCapacity size_t

the initial capacity for the hash set

allocator Allocator

allocator to use for allocations

Meta