BloombergLP::bdlcc::SkipList_NodeCreationHelper::SkipList_NodeCreationHelper

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

NameDescription
poolManagerpool manager for list nodes
nodenode to initialize
basicAllocatorallocator used to supply memory