Assign the specified newKey value to the pair identified by the specified reference, moving the pair within the list as necessary. Search for the new position from the back of the list (in descending order by key value). Load into the optionally specified newFrontFlag a true value if the new location of the pair is the front of the list. Return 0 on success, e_NOT_FOUND if the pair referred to by reference is no longer in the list, or e_DUPLICATE if the optionally specified allowDuplicates is false and newKey already appears in the list.

Synopsis

Declared in <bdlcc_skiplist.h>

int
updateR(
    Pair const* reference,
    KEY const& newKey,
    bool* newFrontFlag = 0,
    bool allowDuplicates = true);

Created with MrDocs