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

◆ rotateLeft()

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

Definition at line 67 of file rbtree.h.

67 {
68 RBNode* y = x->right;
69 x->right = y->left;
70 if (y->left != nullptr) {
71 y->left->parent = x;
72 }
73 y->parent = x->parent;
74 if (x->parent == nullptr) {
75 mRoot = y;
76 } else if (x == x->parent->left) {
77 x->parent->left = y;
78 } else {
79 x->parent->right = y;
80 }
81 y->left = x;
82 x->parent = y;
83 }
RBNode * mRoot
Definition rbtree.h:61

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: