This class implements a memory pool that dispenses arbitrarily‐sized blocks of memory from an internal buffer or an optionally user‐supplied buffer. If an allocation request exceeds the remaining free memory space in the current buffer, the pool either replenishes its buffer with new memory to satisfy the request, or returns a separate memory block, depending on whether the request size exceeds an optionally specified maximum buffer size. By default, buffer growth is not capped. The release method releases all memory allocated through this pool, as does the destructor. Note, however, that individual allocated blocks of memory cannot be individually deallocated.
Synopsis
Declared in <bslma_sequentialpool.h>
class SequentialPool;
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object and release all memory currently allocated through this pool. |
Return memory of the specified |
|
|
|
Destroy the specified |
|
Destroy the specified |
|
|
|
Release all memory currently allocated through this pool. |
|
Reserve sufficient memory to satisfy allocation requests for at least the specified |
|
Reduce the amount of memory allocated at the specified |
Created with MrDocs