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

◆ predecessor()

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

Definition at line 356 of file rbtree.h.

356 {
357 if (x == nullptr) return nullptr;
358 if (x->left != nullptr) {
359 return mTree->maximum(x->left);
360 }
361 RBNode* y = x->parent;
362 while (y != nullptr && x == y->left) {
363 x = y;
364 y = y->parent;
365 }
366 return y;
367 }
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: