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 ( RBNode * node)
inlineprivate

Definition at line 241 of file rbtree.h.

241 {
242 if (node != nullptr) {
243 destroyTree(node->left);
244 destroyTree(node->right);
245 mAlloc.destroy(node);
246 mAlloc.deallocate(node, 1);
247 }
248 }
NodeAllocator mAlloc
Definition rbtree.h:64
void destroyTree(RBNode *node)
Definition rbtree.h:241

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: