[#BloombergLP-bslalg-RbTreeNode-setParent] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RbTreeNode.adoc[RbTreeNode]::setParent :relfileprefix: ../../../ :mrdocs: Set the parent of this node to the specified `address`. == Synopsis Declared in `<bslalg_rbtreenode.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setParent(xref:BloombergLP/bslalg/RbTreeNode.adoc[RbTreeNode]* address); ---- == Description If `address` is 0, then this node will have not have a parent node (i.e., it will be the root node). The behavior is undefined unless `address` is aligned to at least two bytes. == Parameters [cols="1,4"] |=== | Name| Description | *address* | parent node, or 0 if this node is the root |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#