Macaulay2 Engine
Loading...
Searching...
No Matches

◆ allocate()

template<typename T>
T * StatsAllocator< T >::allocate ( size_t num)
inline

Definition at line 114 of file myalloc.hpp.

115 {
116 AllocLogger::logAlloc(num, sizeof(T));
117 return static_cast<T*>(::operator new (num * sizeof(T)));
118 }
static void logAlloc(size_t num, size_t sz)
Definition myalloc.hpp:79

References AllocLogger::logAlloc(), and T.