* @brief Destory the created map. This means that you don't want maintain the * map anymore. */
| 298 | * map anymore. |
| 299 | */ |
| 300 | void DestroyMap() { |
| 301 | sonic_assert(this->IsObject()); |
| 302 | if (getMap()) { |
| 303 | getMap()->~map_type(); |
| 304 | Allocator::Free(getMap()); |
| 305 | setMap(nullptr); |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | using BaseNode::RemoveMember; |
| 310 |