FastLED 3.9.15
Loading...
Searching...
No Matches

◆ transplant()

template<typename T, typename Compare = less<T>, typename Allocator = allocator_slab<char>>
void fl::RedBlackTree< T, Compare, Allocator >::transplant ( Node * u,
Node * v )
inlineprivate

Definition at line 135 of file rbtree.h.

135 {
136 if (u->parent == nullptr) {
137 root_ = v;
138 } else if (u == u->parent->left) {
139 u->parent->left = v;
140 } else {
141 u->parent->right = v;
142 }
143 if (v != nullptr) {
144 v->parent = u->parent;
145 }
146 }
Node * root_
Definition rbtree.h:54

Referenced by fl::RedBlackTree< value_type, PairCompare, Allocator >::erase().

+ Here is the caller graph for this function: