Instance Method

initWithPointerFunctions:capacity:

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

Declaration

- (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions capacity:(NSUInteger)initialCapacity;

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

- initWithOptions:capacity:

Returns a hash table initialized with the given attributes.