add overloads

Synopses

Declared in <bdlcc_skiplist.h>

Add the specified key / data pair to this list.

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

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

void
add(
    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