Returns true if value existed
| 209 | |
| 210 | // Returns true if value existed |
| 211 | bool remove(const KeyType& key) |
| 212 | { |
| 213 | TreeAccessor treeAccessor(&tree); |
| 214 | |
| 215 | if (treeAccessor.locate(key)) |
| 216 | { |
| 217 | KeyValuePair* var = treeAccessor.current(); |
| 218 | treeAccessor.fastRemove(); |
| 219 | delete var; |
| 220 | mCount--; |
| 221 | return true; |
| 222 | } |
| 223 | |
| 224 | return false; |
| 225 | } |
| 226 | |
| 227 | // Returns true if value existed previously |
| 228 | bool put(const KeyType& key, const ValueType& value) |
nothing calls this directly
no test coverage detected