| 372 | |
| 373 | |
| 374 | MutableInterior* grow() { |
| 375 | assert_precondition(capacity() < kMaxChildren); |
| 376 | auto replacement = (MutableInterior*)realloc(this, |
| 377 | sizeof(MutableInterior) + (capacity()+1)*sizeof(NodeRef)); |
| 378 | if (!replacement) |
| 379 | throw std::bad_alloc(); |
| 380 | replacement->_capacity++; |
| 381 | return replacement; |
| 382 | } |
| 383 | |
| 384 | |
| 385 | static unsigned childBitNumber(hash_t hash, unsigned shift =0) { |
nothing calls this directly
no outgoing calls
no test coverage detected