| 25 | namespace |
| 26 | { |
| 27 | auto checked_calloc(const size_t count, const size_t size) -> void* |
| 28 | { |
| 29 | if (void* ptr = std::calloc(count, size)) |
| 30 | return ptr; |
| 31 | throw std::bad_alloc(); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // Accessor for a lazily initialized, immutable TTlowestRank table. |