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. | |
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 | ( | ) |
Constructor to increment the count.
| nvwa::debug_new_counter::~debug_new_counter | ( | ) |
Destructor to decrement the count.
When the count is zero, check_leaks will be called.
1.6.2