Create a pooled node allocator for up to numLevels levels.
Synopsis
Declared in <bdlcc_skiplist.h>
static
PoolManager*
createPoolManager(
int* objectSizes,
int numLevels,
bslma::Allocator* basicAllocator);
Description
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.
Return Value
address of the new pool manager
Parameters
Name |
Description |
objectSizes |
array of node sizes indexed by level |
numLevels |
number of levels managed by the pool |
basicAllocator |
allocator used to supply memory |
Created with MrDocs