Create a scoped guard for exception‐safe node initialization.

Synopsis

Declared in <bdlcc_skiplist.h>

SkipList_NodeCreationHelper(
    PoolManager* poolManager,
    Node* node,
    bslma::Allocator* basicAllocator = 0);

Description

Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

poolManager

pool manager for list nodes

node

node to initialize

basicAllocator

allocator used to supply memory

Created with MrDocs