Go to the documentation of this file.
12 #ifndef _MEMORY_POOL_H
13 #define _MEMORY_POOL_H
27 Memory(
char * m_beg,
size_t m_size): begin(m_beg),
size(m_size)
33 bool operator < (
const Memory & rhs)
const
34 {
return (begin < rhs.
begin); }
35 bool operator == (
const Memory & rhs)
const
36 {
return (begin == rhs.
begin); }
53 void * alloc(
size_t size);
54 void dealloc (
void * base,
size_t size);
60 list<Memory> freelist;