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

◆ successor()

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

Definition at line 533 of file rbtree.h.

533 {
534 if (x == nullptr) return nullptr;
535 if (x->right != nullptr) {
536 return mTree->minimum(x->right);
537 }
538 RBNode* y = x->parent;
539 while (y != nullptr && x == y->right) {
540 x = y;
541 y = y->parent;
542 }
543 return y;
544 }
const RedBlackTree * mTree
Definition rbtree.h:531

References mTree, fl::x, and fl::y.

Referenced by operator--().

+ Here is the caller graph for this function: