| 349 | #endif |
| 350 | |
| 351 | struct MetaNode { |
| 352 | size_t cap; |
| 353 | map_type* map; |
| 354 | |
| 355 | ~MetaNode() { |
| 356 | if (map) { |
| 357 | map->~map_type(); |
| 358 | Allocator::Free(map); |
| 359 | } |
| 360 | } |
| 361 | MetaNode() : cap{0}, map{nullptr} {} |
| 362 | MetaNode(size_t n) : cap{n}, map{nullptr} {} |
| 363 | void SetMetaCap(size_t n) { cap = n; } |
| 364 | }; |
| 365 | |
| 366 | // Set APIs |
| 367 | DNode& setNullImpl() { |
nothing calls this directly
no outgoing calls
no test coverage detected