template<typename Allocator>
liarsdice::performance::TrackedAllocator class

Tracked allocator wrapper.

Wraps any allocator to track memory usage.

Public types

template<typename U>
struct rebind

Constructors, destructors, conversion operators

TrackedAllocator() defaulted
TrackedAllocator(const TrackedAllocator&) defaulted
template<typename U>
TrackedAllocator(const TrackedAllocator<U>&) noexcept

Public functions

auto allocate(size_type n) -> pointer
void deallocate(pointer p, size_type n) noexcept