| 143 | |
| 144 | #ifdef ARENA_DEBUG |
| 145 | static void printchunk(void* base, size_t sz, bool used) { |
| 146 | std::cout << |
| 147 | "0x" << std::hex << std::setw(16) << std::setfill('0') << base << |
| 148 | " 0x" << std::hex << std::setw(16) << std::setfill('0') << sz << |
| 149 | " 0x" << used << std::endl; |
| 150 | } |
| 151 | void Arena::walk() const |
| 152 | { |
| 153 | for (const auto& chunk: chunks_used) |