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

`addUniqueR` overloads

== Synopses

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

Add a unique `key`&sol;`data` pair, searching from the back&period;


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

[.small]#xref:BloombergLP/bdlcc/SkipList-0a/addUniqueR-0b.adoc[_» more&period;&period;&period;_]#

Add a unique pair from the back and load a handle into `result`&period;


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

[.small]#xref:BloombergLP/bdlcc/SkipList-0a/addUniqueR-05.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value if `key` already exists

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key of the pair
| *data*
| data associated with `key`
| *newFrontFlag*
| if non&hyphen;null, set to whether the pair is at the front
| *result*
| receives a reference to the inserted pair
|===


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