[#bsl-_Sl_global-__previous-02]
= xref:bsl.adoc[bsl]::xref:bsl/_Sl_global.adoc[&lowbar;Sl&lowbar;global]::&lowbar;&lowbar;previous
:relfileprefix: ../../
:mrdocs:

Return the node preceding `&lowbar;&lowbar;node` when walking from `&lowbar;&lowbar;head`&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;slistbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/_Slist_node_base.adoc[&lowbar;Slist&lowbar;node&lowbar;base]*
&lowbar;&lowbar;previous(
    xref:bsl/_Slist_node_base.adoc[&lowbar;Slist&lowbar;node&lowbar;base]* &lowbar;&lowbar;head,
    xref:bsl/_Slist_node_base.adoc[&lowbar;Slist&lowbar;node&lowbar;base] const* &lowbar;&lowbar;node);
----

== Return Value

predecessor of `&lowbar;&lowbar;node`, or null if none

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;head*
| starting node of the walk
| *&lowbar;&lowbar;node*
| node whose predecessor is sought
|===


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