CFSetCreateCopy |
||||
Header: | CFSet.h | Carbon status: | Supported | |
Creates an immutable CFSet object from the contents of an existing CFSet object.
CFSetRef CFSetCreateCopy ( CFAllocatorRef allocator, CFSetRef theSet );
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.
Pass a reference to the CFSet object to be copied.
A reference to an immutable CFSet object or NULL if there was a problem creating the object.
The CFSetCreateCopy function creates an immutable copy of an existing CFSet object. The values are copied as pointers into the new CFSet object (that is, values are themselves copied, not that which they point to). The callbacks that the original uses to retain, release, compare, and describe values are reused for the copy.
Supported in Carbon. Available in Carbon 1.0.2 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)