addR overloads

Synopses

Declared in <bdlcc_skiplist.h>

Add key/`data`, searching for position from the back.

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

Add key/`data` from the back and load a handle into result.

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

Parameters

Name

Description

key

key of the pair

data

data associated with key

newFrontFlag

if non‐null, set to whether the pair is at the front

result

receives a reference to the inserted pair

Created with MrDocs