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 ( RBNode * u,
RBNode * v )
inlineprivate

Definition at line 142 of file rbtree.h.

142 {
143 if (u->parent == nullptr) {
144 mRoot = v;
145 } else if (u == u->parent->left) {
146 u->parent->left = v;
147 } else {
148 u->parent->right = v;
149 }
150 if (v != nullptr) {
151 v->parent = u->parent;
152 }
153 }
RBNode * mRoot
Definition rbtree.h:61

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

+ Here is the caller graph for this function: