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

◆ successor()

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

Definition at line 426 of file rbtree.h.

426 {
427 if (x == nullptr) return nullptr;
428 if (x->right != nullptr) {
429 return mTree->minimum(x->right);
430 }
431 const RBNode* y = x->parent;
432 while (y != nullptr && x == y->right) {
433 x = y;
434 y = y->parent;
435 }
436 return y;
437 }
const RedBlackTree * mTree
Definition rbtree.h:424

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

Referenced by operator++().

+ Here is the caller graph for this function: