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

Method contains

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

Source from the content-addressed store, hash-verified

52 construct(pts, from, mid - 1, INC(c)),
53 construct(pts, mid + 1, to, INC(c))); }
54 bool contains(const pt &p) { return _con(p, root, 0); }
55 bool _con(const pt &p, node *n, int c) {
56 if (!n) return false;
57 if (cmp(c)(p, n->p)) return _con(p, n->l, INC(c));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected