MCPcopy Create free account
hub / github.com/FastLED/FastLED / destroyTree

Method destroyTree

src/fl/stl/detail/rbtree.h:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 }
240
241 void destroyTree(RBNode* node) {
242 if (node != nullptr) {
243 destroyTree(node->left);
244 destroyTree(node->right);
245 mAlloc.destroy(node);
246 mAlloc.deallocate(node, 1);
247 }
248 }
249
250 RBNode* copyTree(RBNode* node, RBNode* parent = nullptr) {
251 if (node == nullptr) return nullptr;

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.45
deallocateMethod · 0.45

Tested by

no test coverage detected