[#BloombergLP-bdlcc-SkipList-0a-addUnique-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SkipList-0a.adoc[SkipList]::addUnique :relfileprefix: ../../../ :mrdocs: `addUnique` overloads == Synopses Declared in `<bdlcc_skiplist.h>` Add `key`/`data` if `key` is not already in the list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/SkipList-0a/addUnique-02.adoc[addUnique]( KEY const& key, DATA const& data, bool* newFrontFlag = 0); ---- [.small]#xref:BloombergLP/bdlcc/SkipList-0a/addUnique-02.adoc[_» more..._]# Add a unique key/data pair and load a handle into `result`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/SkipList-0a/addUnique-01.adoc[addUnique]( xref:BloombergLP/bdlcc/SkipList-0a/PairHandle.adoc[PairHandle]* result, KEY const& key, DATA const& data, bool* newFrontFlag = 0); ---- [.small]#xref:BloombergLP/bdlcc/SkipList-0a/addUnique-01.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]#