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

Name

Description

poolManager

pool from which to allocate

level

skip‐list level of the node to allocate

Created with MrDocs