Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acm-clan/algorithm-stone
/ replaceChild
Method
replaceChild
templates/rb.cpp:73–81 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
71
}
72
73
void replaceChild(RBTreeNode* n, RBTreeNode* new_node)
74
{
75
if (n == left) {
76
left = new_node;
77
} else {
78
right = new_node;
79
}
80
new_node->p = this;
81
}
82
83
void addChild(RBTree* t, RBTreeNode* z)
84
{
Callers
1
transplant
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected