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

◆ findNode()

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

Definition at line 227 of file rbtree.h.

227 {
229 while (current != nullptr) {
230 if (mComp(value, current->data)) {
231 current = current->left;
232 } else if (mComp(current->data, value)) {
233 current = current->right;
234 } else {
235 return current;
236 }
237 }
238 return nullptr;
239 }
Compare mComp
Definition rbtree.h:63
RBNode * mRoot
Definition rbtree.h:61

Referenced by fl::RedBlackTree< value_type, PairCompare, Allocator >::contains(), fl::RedBlackTree< value_type, PairCompare, Allocator >::count(), fl::RedBlackTree< value_type, PairCompare, Allocator >::erase(), fl::RedBlackTree< value_type, PairCompare, Allocator >::find(), and fl::RedBlackTree< value_type, PairCompare, Allocator >::find().

+ Here is the caller graph for this function: