CFAllocatorGetDefaultHeader: CFBase.h

Gets the default allocator object for the current thread.

CFAllocatorRef CFAllocatorGetDefault ();
function result

A reference to an allocator object.

DISCUSSION

Use this function to get the allocator object that is currently set as the default allocator for the current thread. If one has not been explicitly set, the function returns the generic system allocator (kCFAllocatorSystemDefault).

See the discussion for CFAllocatorSetDefault for more detail on the default allocator and for advice on how and when to set a custom allocator as the default.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)