4 template<typename Block> struct bump_allocator {
5 /* offset of 'here' and 'end' is hardcoded in compiler backends */
11 explicit bump_allocator(cell size_, cell start_) :
12 here(start_), start(start_), end(start_ + size_), size(size_) {}
14 bool contains_p(Block *block)
16 return ((cell)block - start) < size;
19 Block *allot(cell size)
22 here = h + align(size,data_alignment);