#include <debug_new.h>
|
static void | free_pointer (void *pointer, void *addr, bool is_array) |
|
Recorder class to remember the call context.
The idea comes from Greg Herlihy's post in comp.lang.c++.moderated.
Definition at line 171 of file debug_new.h.
◆ __debug_new_recorder() [1/2]
qx::memory::__debug_new_recorder::__debug_new_recorder |
( |
const char * | file, |
|
|
int | line, |
|
|
const char * | fct ) |
|
inline |
◆ __debug_new_recorder() [2/2]
◆ _M_process()
void qx::memory::__debug_new_recorder::_M_process |
( |
void * | pointer | ) |
|
|
private |
◆ free_pointer()
static void qx::memory::__debug_new_recorder::free_pointer |
( |
void * | pointer, |
|
|
void * | addr, |
|
|
bool | is_array ) |
|
static |
◆ operator->*()
template<class _Tp >
_Tp * qx::memory::__debug_new_recorder::operator->* |
( |
_Tp * | pointer | ) |
|
|
inline |
Operator to write the context information to memory. operator->*
is chosen because it has the right precedence, it is rarely used, and it looks good: so people can tell the special usage more quickly.
Definition at line 190 of file debug_new.h.
◆ operator=()
◆ _M_fct
const char* qx::memory::__debug_new_recorder::_M_fct |
|
private |
◆ _M_file
const char* qx::memory::__debug_new_recorder::_M_file |
|
private |
◆ _M_line
const int qx::memory::__debug_new_recorder::_M_line |
|
private |
The documentation for this class was generated from the following file: