MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / applyInOrder

Function applyInOrder

extra/yassl/taocrypt/test/memory.cpp:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192typedef void (*fp)(alloc_node*, void*);
193
194void applyInOrder(alloc_node* root, fp f, void* arg)
195{
196 if (root == 0)
197 return;
198
199 applyInOrder(root->left_, f, arg);
200 f(root, arg);
201 applyInOrder(root->right_, f, arg);
202}
203
204
205void show(alloc_node* ptr, void* arg)

Callers 1

LogStatsMethod · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected