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

Method remove

src/common/classes/GenericMap.h:211–225  ·  view source on GitHub ↗

Returns true if value existed

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

locateMethod · 0.45
currentMethod · 0.45
fastRemoveMethod · 0.45

Tested by

no test coverage detected