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

◆ predecessor()

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

Definition at line 439 of file rbtree.h.

439 {
440 if (x == nullptr) return nullptr;
441 if (x->left != nullptr) {
442 return mTree->maximum(x->left);
443 }
444 const RBNode* y = x->parent;
445 while (y != nullptr && x == y->left) {
446 x = y;
447 y = y->parent;
448 }
449 return y;
450 }
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: