Contents

initWithCapacity

Initializes a new instance of OSSet.

Declaration

virtual bool initWithCapacity(
 unsigned intcapacity);

Parameters

  • capacity:

    The initial storage capacity of the new set object.

Return Value

true on success, false on failure.

Overview

Not for general use. Use the static instance creation method withCapacity instead.

capacity must be nonzero. The new set will grow as needed to accommodate more key/object pairs (unlikeCFMutableSet, for which the initial capacity is a hard limit).

See Also

Miscellaneous