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

◆ predecessor()

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

Definition at line 431 of file rbtree.h.

431 {
432 if (x == nullptr) return nullptr;
433 if (x->left != nullptr) {
434 return mTree->maximum(x->left);
435 }
436 const Node* y = x->parent;
437 while (y != nullptr && x == y->left) {
438 x = y;
439 y = y->parent;
440 }
441 return y;
442 }
const RedBlackTree * mTree
Definition rbtree.h:416

References mTree, x, and y.

Referenced by operator--().

+ Here is the caller graph for this function: