addUnique overloads
Synopses
Declared in <bdlcc_skiplist.h>
Add key/`data` if key is not already in the list.
int
addUnique(
KEY const& key,
DATA const& data,
bool* newFrontFlag = 0);
Add a unique key/data pair and load a handle into result.
int
addUnique(
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