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

◆ successor()

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

Definition at line 418 of file rbtree.h.

418 {
419 if (x == nullptr) return nullptr;
420 if (x->right != nullptr) {
421 return mTree->minimum(x->right);
422 }
423 const Node* y = x->parent;
424 while (y != nullptr && x == y->right) {
425 x = y;
426 y = y->parent;
427 }
428 return y;
429 }
const RedBlackTree * mTree
Definition rbtree.h:416

References mTree, x, and y.

Referenced by operator++().

+ Here is the caller graph for this function: