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

Load into `prevPair` the pair before `reference`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
previous(
    xref:BloombergLP/bdlcc/SkipList-0a/PairHandle.adoc[PairHandle]* prevPair,
    xref:BloombergLP/bdlcc/SkipList-0a/Pair.adoc[Pair] const* reference) const;
----

== Description

Load a reference to the pair before `reference` into `prevPair`&period;

Load into the specified `prevPair` a reference to the pair that appears in the list before the pair identified by the specified `reference`&period; Return 0 on success, or a non&hyphen;zero value if `reference` refers to the front of the list&period;

== Return Value

0 on success, or a non&hyphen;zero value if `reference` is at the front

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prevPair*
| receives a reference to the previous pair
| *reference*
| pair in this list
|===


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