BloombergLP::bdlcc::SkipList::add

Add a key/data pair and load a handle to it into result.

Synopsis

Declared in <bdlcc_skiplist.h>

void
add(
    PairHandle* result,
    KEY const& key,
    DATA const& data,
    bool* newFrontFlag = 0);

Description

Load into the optionally specified newFrontFlag a true value if the pair is at the front of the list, and a false value otherwise.

Parameters

NameDescription
resultreceives a reference to the inserted pair
keykey of the pair
datadata associated with key
newFrontFlagif non-null, set to whether the pair is at the front