| 143 | handler_memory& operator=(const handler_memory&) = delete; |
| 144 | |
| 145 | void* allocate(std::size_t size) |
| 146 | { |
| 147 | if (!in_use_ && size < sizeof(storage_)) |
| 148 | { |
| 149 | in_use_ = true; |
| 150 | return &storage_; |
| 151 | } |
| 152 | else |
| 153 | { |
| 154 | return ::operator new(size); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | void deallocate(void* pointer) |
| 159 | { |
nothing calls this directly
no test coverage detected