addUniqueR overloads
Synopses
Declared in <bdlcc_skiplist.h>
Add a unique key/`data` pair, searching from the back.
int
addUniqueR(
KEY const& key,
DATA const& data,
bool* newFrontFlag = 0);
Add a unique pair from the back and load a handle into result.
int
addUniqueR(
PairHandle* result,
KEY const& key,
DATA const& data,
bool* newFrontFlag = 0);
Return Value
0 on success, and a non‐zero value if key already exists
Parameters
Name |
Description |
key |
key of the pair |
data |
data associated with |
newFrontFlag |
if non‐null, set to whether the pair is at the front |
result |
receives a reference to the inserted pair |
Created with MrDocs