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

◆ destroyTree()

template<typename T, typename Compare = less<T>, typename Allocator = allocator_slab<char>>
void fl::RedBlackTree< T, Compare, Allocator >::destroyTree ( Node * node)
inlineprivate

Definition at line 234 of file rbtree.h.

234 {
235 if (node != nullptr) {
236 destroyTree(node->left);
237 destroyTree(node->right);
238 alloc_.destroy(node);
239 alloc_.deallocate(node, 1);
240 }
241 }
void destroyTree(Node *node)
Definition rbtree.h:234
NodeAllocator alloc_
Definition rbtree.h:57

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

+ Here is the caller graph for this function: