CppAD: A C++ Algorithmic Differentiation Package
20130102
|
bool memory_leak | ( | size_t | add_static = 0 | ) | [inline] |
Function that checks allocator thread_alloc
for misuse that results in memory leaks.
Deprecated routines in track_new_del.hpp and omp_alloc.hpp are also checked.
add_static | [in] The amount specified by add_static is added to the amount of memory that is expected to be used by thread zero for static variables. |
add_static
is non-zero, the return value is false
. Otherwise, if one of the following errors is detected, the return value is true:
Definition at line 154 of file memory_leak.hpp.