MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / clear

Method clear

code/data-structures/kd_tree.cpp:65–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 else if (cmp(c)(p, n->p)) _ins(p, n->l, INC(c));
64 else if (cmp(c)(n->p, p)) _ins(p, n->r, INC(c)); }
65 void clear() { _clr(root); root = NULL; }
66 void _clr(node *n) {
67 if (n) _clr(n->l), _clr(n->r), delete n; }
68 pair<pt, bool> nearest_neighbour(const pt &p,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected