[#BloombergLP-bdlcc-SkipListPairHandle]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::SkipListPairHandle
:relfileprefix: ../../
:mrdocs:

Managed handle to a key&sol;data pair in a `SkipList`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class DATA&gt;
class SkipListPairHandle;
----

== Description

Objects of this class refer to an association (pair) in a `SkipList`&period; A `bdlcc&colon;&colon;SkipListPairHandle` is implicitly convertible to a `const Pair&ast;` and thus may be used anywhere in the `SkipList` API that a `const Pair&ast;` is expected&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/SkipListPairHandle/2constructor-06.adoc[`SkipListPairHandle`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlcc/SkipListPairHandle/2destructor.adoc[`&#126;SkipListPairHandle`] [.small]#[destructor]#
| Destroy this `SkipListPairHandle`&period; If this `SkipListPairHandle` refers to a pair in the list, release the reference&period;
| xref:BloombergLP/bdlcc/SkipListPairHandle/operator_assign.adoc[`operator&equals;`] 
| Make this handle refer to the same pair as `rhs`&period;
| xref:BloombergLP/bdlcc/SkipListPairHandle/data-00.adoc[`data`] 
| `data` overloads
| xref:BloombergLP/bdlcc/SkipListPairHandle/isValid.adoc[`isValid`] 
| Return `true` if this PairHandle currently refers to a pair, and `false` otherwise&period;
| xref:BloombergLP/bdlcc/SkipListPairHandle/key-05.adoc[`key`] 
| `key` overloads
| xref:BloombergLP/bdlcc/SkipListPairHandle/release.adoc[`release`] 
| Release the reference (if any) managed by this `SkipListPairHandle`&period;
| xref:BloombergLP/bdlcc/SkipListPairHandle/releaseReferenceRaw.adoc[`releaseReferenceRaw`] 
| Release this handle and return the raw list and pair pointers&period;
| xref:BloombergLP/bdlcc/SkipListPairHandle/2conversion.adoc[`operator bdlcc::SkipListPair&lt;KEY, DATA&gt; const*`] 
| Return the address of the pair referred to by this `SkipListPairHandle`, or 0 if this handle does not manage a reference&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlcc/SkipList-0a.adoc[BloombergLP::bdlcc::SkipList]`
| Thread&hyphen;safe ordered associative skip list of key&sol;data pairs&period;
|===


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