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 ( Node * x)
inlineprivate

Definition at line 60 of file rbtree.h.

60 {
61 Node* y = x->right;
62 x->right = y->left;
63 if (y->left != nullptr) {
64 y->left->parent = x;
65 }
66 y->parent = x->parent;
67 if (x->parent == nullptr) {
68 root_ = y;
69 } else if (x == x->parent->left) {
70 x->parent->left = y;
71 } else {
72 x->parent->right = y;
73 }
74 y->left = x;
75 x->parent = y;
76 }
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: