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 >::iterator::successor ( RBNode * x) const
inlineprivate

Definition at line 343 of file rbtree.h.

343 {
344 if (x == nullptr) return nullptr;
345 if (x->right != nullptr) {
346 return mTree->minimum(x->right);
347 }
348 RBNode* y = x->parent;
349 while (y != nullptr && x == y->right) {
350 x = y;
351 y = y->parent;
352 }
353 return y;
354 }
const RedBlackTree * mTree
Definition rbtree.h:341

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

Referenced by operator++().

+ Here is the caller graph for this function: