1 // Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev
3 #ifndef BLOCK_ALLOCATOR_H
4 #define BLOCK_ALLOCATOR_H
20 block_allocator(const block_allocator &);
21 block_allocator &operator=(block_allocator &);
24 block_allocator(size_t blocksize);
27 // exchange contents with rhs
28 void swap(block_allocator &rhs);
31 void *malloc(size_t size);
33 // free all allocated blocks