CLocalHeap Class
TOC
Collapse the table of content
Expand the table of content

CLocalHeap Class

 

This class implements IAtlMemMgr using the Win32 local heap functions.

System_CAPS_importantImportant

This class and its members cannot be used in applications that execute in the Windows Runtime.


class CLocalHeap : public IAtlMemMgr

Name

Description

CLocalHeap::Allocate

Call this method to allocate a block of memory.

CLocalHeap::Free

Call this method to free a block of memory allocated by this memory manager.

CLocalHeap::GetSize

Call this method to get the allocated size of a memory block allocated by this memory manager.

CLocalHeap::Reallocate

Call this method to reallocate memory allocated by this memory manager.

CLocalHeap implements memory allocation functions using the Win32 local heap functions.

System_CAPS_noteNote

The local heap functions are slower than other memory management functions and do not provide as many features. Therefore, new applications should use the heap functions. These are available in the CWin32Heap class.

Example

See the example for IAtlMemMgr.

IAtlMemMgr

 CLocalHeap

Requirements

Header: atlmem.h

Show:
© 2016 Microsoft