BloombergLP::bdlcc::SkipList_PoolUtil::createPoolManager

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

NameDescription
objectSizesarray of node sizes indexed by level
numLevelsnumber of levels managed by the pool
basicAllocatorallocator used to supply memory