Create a pooled node allocator for up to numLevels levels.
Declared in <bdlcc_skiplist.h>
static
PoolManager*
createPoolManager(
int* objectSizes,
int numLevels,
bslma::Allocator* basicAllocator);
For i in [0, numLevels)], a node at level i will have size objectSizes[i] bytes. Use the specified basicAllocator to supply memory. Return the address of the new allocator. Note that the behavior is undefined if basicAllocator is 0.
address of the new pool manager
| Name | Description |
|---|---|
| objectSizes | array of node sizes indexed by level |
| numLevels | number of levels managed by the pool |
| basicAllocator | allocator used to supply memory |