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

◆ upperBoundNode()

template<typename T, typename Compare = less<T>, typename Allocator = allocator_slab<char>>
RBNode * fl::RedBlackTree< T, Compare, Allocator >::upperBoundNode ( const value_type & value) const
inlineprivate

Definition at line 317 of file rbtree.h.

317 {
319 RBNode* result = nullptr;
320 while (current != nullptr) {
321 if (mComp(value, current->data)) {
322 result = current;
323 current = current->left;
324 } else {
325 current = current->right;
326 }
327 }
328 return result;
329 }
Compare mComp
Definition rbtree.h:63
RBNode * mRoot
Definition rbtree.h:61

Referenced by fl::RedBlackTree< value_type, PairCompare, Allocator >::upper_bound(), and fl::RedBlackTree< value_type, PairCompare, Allocator >::upper_bound().

+ Here is the caller graph for this function: