Go to the documentation of this file.
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);
159 template <
class Type>
169 template <
class Type>
178 template <
class Type>
181 return static_cast<Type*
>(mem.Alloc());
188 template <
class Type>
199 template <
class Type>
212 template <
class Type>
222 template <
class Type>
225 return mem.GetNoPages();
232 template <
class Type>
235 return mem.GetPageSize();
242 template <
class Type>
246 mem.GrowPageSize(sz);
253 template <
class T1,
class T2>
263 template <
class T1,
class T2>