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

◆ lowerBoundNode()

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

Definition at line 296 of file rbtree.h.

296 {
297 Node* current = root_;
298 Node* result = nullptr;
299 while (current != nullptr) {
300 if (!comp_(current->data, value)) {
301 result = current;
302 current = current->left;
303 } else {
304 current = current->right;
305 }
306 }
307 return result;
308 }
Compare comp_
Definition rbtree.h:56
Node * root_
Definition rbtree.h:54

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

+ Here is the caller graph for this function: