CFSetCreateMutable |
||||
Header: | CFSet.h | Carbon status: | Supported | |
Creates an empty mutable CFSet object.
CFMutableSetRef CFSetCreateMutable ( CFAllocatorRef allocator, CFIndex capacity, const CFSetCallBacks *callBacks );
Pass the CFAllocator object to be used to allocate memory for the set and for the storage of its values. If you want to use the current default allocator, pass NULL.
Specify the number of values that the CFSet object can contain. Pass zero if there is no limitation (other than available memory and address space) on the number of contained values.
Pass a pointer to a CFSetCallBacks structure initialized with the callbacks to use to retain, release, describe, and compare values in the CFSet object. See CFSetCallBacks for information on the fields of this structure.
An reference to a mutable CFSet object or NULL if there was a problem creating the object.
The CFSetCreateMutable function creates an empty mutable CFSet object to which you can add values using the CFSetAddValue function. The capacity parameter specifies the maximum number of values that the CFSet object can contain. If it is zero, then there is no limit to the number of values that can be added (aside from constraints such as available memory).
Supported in Carbon. Available in Carbon 1.0.2 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)