BloombergLP::bdlcc::SkipList::addRawR

Add key/data from the back and load a raw reference.

Synopsis

Declared in <bdlcc_skiplist.h>

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

Description

Search for the correct position for key from the back of the list (in descending order by key value). The result reference must be released (using releaseReferenceRaw) when it is no longer needed. 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