MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / get

Method get

src/common/classes/GenericMap.h:261–272  ·  view source on GitHub ↗

Returns true if value is found

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

locateMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected