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

◆ predecessor()

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

Definition at line 348 of file rbtree.h.

348 {
349 if (x == nullptr) return nullptr;
350 if (x->left != nullptr) {
351 return mTree->maximum(x->left);
352 }
353 Node* y = x->parent;
354 while (y != nullptr && x == y->left) {
355 x = y;
356 y = y->parent;
357 }
358 return y;
359 }
const RedBlackTree * mTree
Definition rbtree.h:333

References mTree, x, and y.

Referenced by operator--().

+ Here is the caller graph for this function: