| 151 | const_pointer address( const_reference x ) const { return &x; } |
| 152 | |
| 153 | pointer allocate( size_type size, CMemoryPoolAllocator<void>::const_pointer hint = 0 ) const |
| 154 | { |
| 155 | if( size == 1 ) |
| 156 | { |
| 157 | return mPool.Allocate(); |
| 158 | } |
| 159 | |
| 160 | DAEDALUS_ERROR( "Can't handle multiple allocations - don't use this allocator e.g. with std::vector" ); |
| 161 | return NULL; |
| 162 | } |
| 163 | |
| 164 | void deallocate( pointer p, size_type n ) const |
| 165 | { |