[#BloombergLP-bslalg-RbTreeUtil-next-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RbTreeUtil.adoc[RbTreeUtil]::next
:relfileprefix: ../../../
:mrdocs:

Return the address of the node that follows the specified `node` in an in&hyphen;order traversal of the binary tree to which `node` belongs, or the tree&apos;s sentinel node if `node` is the rightmost node in the tree&period; The behavior is undefined unless `node` is a member of a valid binary tree, and is not a sentinel node&period; Note that if the tree does not contain duplicate values, then the returned node will have the smallest value greater than that of `node`&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;rbtreeutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslalg/RbTreeNode.adoc[RbTreeNode] const*
next(xref:BloombergLP/bslalg/RbTreeNode.adoc[RbTreeNode] const* node);
----


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