Add key/data from the back and load a handle into result.
Declared in <bdlcc_skiplist.h>
void
addR(
PairHandle* result,
KEY const& key,
DATA const& data,
bool* newFrontFlag = 0);
Search for the correct position for key from the back of the list (in descending order by key value). Load into the optionally specified newFrontFlag a true value if the pair is at the front of the list, and a false value otherwise.
| Name | Description |
|---|---|
| result | receives a reference to the inserted pair |
| key | key of the pair |
| data | data associated with key |
| newFrontFlag | if non-null, set to whether the pair is at the front |