[#BloombergLP-bdlcc-SkipList-0a-addUniqueR-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SkipList-0a.adoc[SkipList]::addUniqueR
:relfileprefix: ../../../
:mrdocs:

Add the specified `key` &sol; `data` pair to this list, and load into the specified `result` a reference to the pair in the list&period; Search for the correct position for `key` from the back of the list (in descending order by key value)&period; Load into the optionally specified `newFrontFlag` a `true` value if the pair is at the front of the list, and a `false` value otherwise&period; Return 0 on success, and a non&hyphen;zero value (with no effect on the list) if `key` is already in the list&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;skiplist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addUniqueR(
    xref:BloombergLP/bdlcc/SkipList-0a/PairHandle.adoc[PairHandle]* result,
    KEY const& key,
    DATA const& data,
    bool* newFrontFlag = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
