BloombergLP::bdlcc::SkipList_NodeCreationHelper

This component-private structure is a scoped guard that initializes new nodes and releases them in case of exception.

Synopsis

Declared in <bdlcc_skiplist.h>

template<
    class KEY,
    class DATA>
class SkipList_NodeCreationHelper;

Member Functions

NameDescription
SkipList_NodeCreationHelper [constructor]Create a scoped guard for exception-safe node initialization.
~SkipList_NodeCreationHelper [destructor]Destroy this scoped guard. If the guard currently manages a node, destroy its data as necessary and return it to the pool.
construct Copy-construct key and data into the managed node.