addUniqueR overloads
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);
» more...
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);
» more...
0 on success, and a non-zero value if key already exists
| 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 |