[#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 `<bdlcc_skiplist.h>` Add a unique `key`/`data` pair, searching from the back. [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..._]# Add a unique pair from the back and load a handle into `result`. [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..._]# == Return Value 0 on success, and a non‐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‐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]#