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

◆ upperBoundNode()

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

Definition at line 310 of file rbtree.h.

310 {
311 Node* current = root_;
312 Node* result = nullptr;
313 while (current != nullptr) {
314 if (comp_(value, current->data)) {
315 result = current;
316 current = current->left;
317 } else {
318 current = current->right;
319 }
320 }
321 return result;
322 }
Compare comp_
Definition rbtree.h:56
Node * root_
Definition rbtree.h:54

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: