111 template <
typename U>
117 return static_cast<T*
>(::operator
new (num *
sizeof(
T)));
123 ::operator
delete(
p);
128template <
class T1,
class T2>
133template <
class T1,
class T2>
static size_t mNumDeallocs
static long mCurrentAllocSize
static void logAlloc(size_t num, size_t sz)
static void logDealloc(size_t num, size_t sz)
Process-wide allocation counter used by StatsAllocator for debugging and benchmarking.
StatsAllocator() noexcept
StatsAllocator(const StatsAllocator< U > &) noexcept
void deallocate(T *p, std::size_t num)
bool operator!=(const StatsAllocator< T1 > &, const StatsAllocator< T2 > &) noexcept
bool operator==(const StatsAllocator< T1 > &, const StatsAllocator< T2 > &) noexcept
std::ostream & operator<<(std::ostream &o, AllocLogger a)