BloombergLP::bdlcc::SkipList_PoolUtil::allocate

Reserve memory for a node at the specified level.

Synopsis

Declared in <bdlcc_skiplist.h>

static
void*
allocate(
    PoolManager* poolManager,
    int level);

Description

Reserve sufficient space for a node at the specified level from the specified poolManager, and return the address of the reserved memory.

Return Value

address of the reserved memory

Parameters

NameDescription
poolManagerpool from which to allocate
levelskip-list level of the node to allocate