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

◆ successor()

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

Definition at line 335 of file rbtree.h.

335 {
336 if (x == nullptr) return nullptr;
337 if (x->right != nullptr) {
338 return mTree->minimum(x->right);
339 }
340 Node* y = x->parent;
341 while (y != nullptr && x == y->right) {
342 x = y;
343 y = y->parent;
344 }
345 return y;
346 }
const RedBlackTree * mTree
Definition rbtree.h:333

References mTree, x, and y.

Referenced by operator++().

+ Here is the caller graph for this function: