|
Nvwa
1.1
|
Counter class for on-exit leakage check. More...
#include <debug_new.h>
Public Member Functions | |
| debug_new_counter () | |
| Constructor to increment the count. | |
| ~debug_new_counter () | |
| Destructor to decrement the count. More... | |
Static Private Attributes | |
| static int | _S_count = 0 |
| Count of source files that use debug_new. | |
Counter class for on-exit leakage check.
This technique is learnt from The C++ Programming Language by Bjarne Stroustup.
| nvwa::debug_new_counter::~debug_new_counter | ( | ) |
Destructor to decrement the count.
When the count is zero, nvwa::check_leaks will be called.
1.8.13