46#define G4Allocator_h 1
113 mem_alloc =
static_cast<Type*
>(::operator
new(n*
sizeof(Type)));
123 ::operator
delete((
void*)p);
136 return 2147483647/
sizeof(Type);
181 return static_cast<Type*
>(mem.Alloc());
225 return mem.GetNoPages();
235 return mem.GetPageSize();
246 mem.GrowPageSize(sz);
253template <
class T1,
class T2>
263template <
class T1,
class T2>
bool operator==(const G4Allocator< T1 > &, const G4Allocator< T2 > &)
bool operator!=(const G4Allocator< T1 > &, const G4Allocator< T2 > &)
size_t GetAllocatedSize() const
size_t GetPageSize() const
void IncreasePageSize(unsigned int sz)
pointer address(reference r) const
const Type * const_pointer
pointer allocate(size_type n, void *=0)
void deallocate(pointer p, size_type n)
void FreeSingle(Type *anElement)
size_type max_size() const
ptrdiff_t difference_type
const Type & const_reference
G4Allocator(const G4Allocator< U > &right)
const_pointer address(const_reference r) const
void construct(pointer p, const Type &val)