[#BloombergLP-bslalg-RbTreeNode-toggleColor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RbTreeNode.adoc[RbTreeNode]::toggleColor :relfileprefix: ../../../ :mrdocs: Set the color of this node to the alternative color. == Synopsis Declared in `<bslalg_rbtreenode.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void toggleColor(); ---- == Description If this node's color is red, set it to black, and set it to red otherwise. Note that this operation is at least as fast as (and potentially faster than) `setColor`. [.small]#Created with https://www.mrdocs.com[MrDocs]#