MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / get

Method get

templates/red-black-tree.cpp:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 int get(int key)
147 {
148 // 普通的搜索
149 auto v = getInternal(root, key);
150 return v ? v->v : -1;
151 }
152
153 void insert(RBTreeNode* z)
154 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected