|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
内存追踪分配器 更多...
#include "NeForce/core/container/unordered_map.hpp"#include "NeForce/core/system/console.hpp"#include "NeForce/core/system/stacktrace.hpp"类 | |
| class | trace_allocator< T > |
| 内存追踪分配器 更多... | |
| struct | trace_allocator< T >::rebind< U > |
| 分配器绑定模板 更多... | |
函数 | |
| template<typename T, typename U> | |
| bool | operator== (const trace_allocator< T > &lhs, const trace_allocator< U > &rhs) noexcept |
| 相等比较运算符 | |
| template<typename T, typename U> | |
| bool | operator!= (const trace_allocator< T > &lhs, const trace_allocator< U > &rhs) noexcept |
| 不等比较运算符 | |
内存追踪分配器
此文件提供了用于内存泄漏检测的追踪分配器实现。 通过记录每次内存分配的调用栈,在程序结束时检测并报告未释放的内存。 主要用于调试和测试阶段的内存问题诊断。
在文件 trace_memory.hpp 中定义.