* @brief Get the value for a given key and remove it from the map, without destroying it * @retval V* * @note The returned object must be freed by the caller when no longer required */
| 107 | * @note The returned object must be freed by the caller when no longer required |
| 108 | */ |
| 109 | V* extract() |
| 110 | { |
| 111 | return map.extract(key); |
| 112 | } |
| 113 | |
| 114 | private: |
| 115 | ObjectMap<K, V>& map; |