libUTL++
gblnew.h
Go to the documentation of this file.
1 #pragma once
2 
4 
17 
19 UTL_NS_BEGIN;
20 
22 
23 class Thread;
24 
26 
27 #if UTL_GBLNEW_MODE == UTL_GBLNEW_MODE_DEBUG
28 
30 
34 void memReportLeaks();
35 
37 
42 void memReportLeaks(bool includeUnknown);
43 
45 
46 void memPrintBlocks();
47 
49 
50 #endif // UTL_GBLNEW_MODE
51 
53 
54 UTL_NS_END;
55 
57 
58 #include <new>
59 
61 
62 #if UTL_GBLNEW_MODE == UTL_GBLNEW_MODE_DEBUG
63 
65 
71 void* operator new[](size_t size);
72 
74 
79 void operator delete[](void* ptr) noexcept;
80 
82 
90 void* operator new[](size_t size, const char* file, uint_t line);
91 
93 
100 void operator delete[](void* ptr, const char* file, uint_t line) noexcept;
101 
103 
109 void* operator new(size_t size);
110 
112 
117 void operator delete(void* ptr) noexcept;
118 
120 
128 void* operator new(size_t size, const char* file, uint_t line);
129 
131 
138 void operator delete(void* ptr, const char* file, uint_t line) noexcept;
139 
141 
142 #endif // UTL_GBLNEW_MODE == UTL_GBLNEW_MODE_DEBUG
143 
145 
146 #include <libutl/gblnew_macros.h>
void memReportLeaks(bool includeUnknown)
Report memory leaks.
unsigned int uint_t
Unsigned integer.
Definition: types.h:59