Type Method

orderedSetWithCapacity:

Creates and returns an mutable ordered set with a given initial capacity.

Declaration

+ (instancetype)orderedSetWithCapacity:(NSUInteger)numItems;

Parameters

numItems

The initial capacity of the new ordered set.

Return Value

A mutable ordered set with initial capacity to hold numItems members.

Discussion

Mutable ordered sets allocate additional memory as needed, so numItems simply establishes the set’s initial capacity.

See Also

Creating a Mutable Ordered Set

- initWithCapacity:

Returns an initialized mutable ordered set with a given initial capacity.

- init

Initializes a newly allocated mutable ordered set.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software