MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::ThreadLocalDebugAllocator Struct Reference

State variable for thread local debug allocator Must live longer (and at the same memory address) than all allocators returned by allocator() More...

#include <alloc.hpp>

Public Member Functions

Allocator allocator () noexcept
 

Public Attributes

size_t allocatedBytes = 0
 
i64 lastId = 0
 
std::unordered_map< i64, cpptrace::stacktrace > trace = {}
 

Detailed Description

State variable for thread local debug allocator Must live longer (and at the same memory address) than all allocators returned by allocator()

Definition at line 312 of file core/mtcore/alloc.hpp.

Member Function Documentation

◆ allocator()

Allocator mtcore::ThreadLocalDebugAllocator::allocator ( )
noexcept
Returns
Allocator VTable that can be passed to functions which allocator

Member Data Documentation

◆ allocatedBytes

size_t mtcore::ThreadLocalDebugAllocator::allocatedBytes = 0

Definition at line 313 of file core/mtcore/alloc.hpp.

◆ lastId

i64 mtcore::ThreadLocalDebugAllocator::lastId = 0

Definition at line 314 of file core/mtcore/alloc.hpp.

◆ trace

std::unordered_map<i64, cpptrace::stacktrace> mtcore::ThreadLocalDebugAllocator::trace = {}

Definition at line 316 of file core/mtcore/alloc.hpp.

316{};

The documentation for this struct was generated from the following file: