MCPcopy Create free account
hub / github.com/SmingHub/Sming / extract

Method extract

Sming/Core/Data/ObjectMap.h:279–283  ·  view source on GitHub ↗

* @brief Get the value for a given key and remove it from the map, without destroying it * @param key * @retval V* * @note The returned object must be freed by the caller when no longer required */

Source from the content-addressed store, hash-verified

277 * @note The returned object must be freed by the caller when no longer required
278 */
279 V* extract(const K& key)
280 {
281 int i = indexOf(key);
282 return (i < 0) ? nullptr : extractAt(i);
283 }
284
285 /**
286 * @brief Get the value at a given index and remove it from the map, without destroying it

Callers 2

executeMethod · 0.45
extractMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected