This class implements a low‐level memory manager that allocates and manages a sequence of memory blocks ‐‐ each potentially of a different size as specified during the invocation of the allocate method. Allocated blocks may be efficiently deallocated individually, i.e., potentially in constant time depending on the supplied allocator. The release method deallocates the entire sequence of memory blocks, as does the destructor.
Synopsis
Declared in <bdlma_blocklist.h>
class BlockList;
Member Functions
Name |
Description |
|
Create an empty block list suitable for managing memory blocks of varying sizes. Optionally specify a |
|
Destroy this object and deallocate all outstanding memory blocks managed by this object. |
Return the address of a contiguous block of memory of the specified |
|
Return the allocator used by this object to allocate memory. |
|
Return the memory at the specified |
|
Deallocate all memory blocks currently managed by this object, returning it to its default‐constructed state. |
Created with MrDocs