1 // Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev
4 #ifndef BLOCK_ALLOCATOR_H
5 #define BLOCK_ALLOCATOR_H
22 block_allocator(const block_allocator &);
23 block_allocator &operator=(block_allocator &);
26 block_allocator(size_t blocksize);
29 // exchange contents with rhs
30 void swap(block_allocator &rhs);
33 void *malloc(size_t size);
35 // free all allocated blocks