Returns true if value is found
| 259 | |
| 260 | // Returns true if value is found |
| 261 | bool get(const KeyType& key, ValueType& value) const |
| 262 | { |
| 263 | ConstTreeAccessor treeAccessor(&tree); |
| 264 | |
| 265 | if (treeAccessor.locate(key)) |
| 266 | { |
| 267 | value = treeAccessor.current()->second; |
| 268 | return true; |
| 269 | } |
| 270 | |
| 271 | return false; |
| 272 | } |
| 273 | |
| 274 | // Returns pointer to the found value or null otherwise |
| 275 | ValueType* get(const KeyType& key) const |