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

◆ rotateRight()

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

Definition at line 78 of file rbtree.h.

78 {
79 Node* y = x->left;
80 x->left = y->right;
81 if (y->right != nullptr) {
82 y->right->parent = x;
83 }
84 y->parent = x->parent;
85 if (x->parent == nullptr) {
86 root_ = y;
87 } else if (x == x->parent->right) {
88 x->parent->right = y;
89 } else {
90 x->parent->left = y;
91 }
92 y->right = x;
93 x->parent = y;
94 }
Node * root_
Definition rbtree.h:54

Referenced by fl::RedBlackTree< value_type, PairCompare, Allocator >::deleteFixup(), and fl::RedBlackTree< value_type, PairCompare, Allocator >::insertFixup().

+ Here is the caller graph for this function: