Contents

init(pointerFunctions:capacity:)

Returns a hash table initialized with the given functions and capacity.

Declaration

init(pointerFunctions functions: NSPointerFunctions, capacity initialCapacity: Int)

Parameters

  • functions:

    The pointer functions for the new hash table.

  • initialCapacity:

    The initial capacity of the hash table.

Return Value

A hash table initialized with the given functions and capacity.

Discussion

Hash tables allocate additional memory as needed, so initialCapacity simply establishes the object’s initial capacity.

See Also

Initialization