#include <debug_new.h>
Collaboration diagram for __debug_new_counter:

Public Member Functions | |
| __debug_new_counter () | |
| Constructor to increment the count. | |
| ~__debug_new_counter () | |
| Destructor to decrement the count. | |
This technique is learnt from The C++ Programming Language by Bjarne Stroustup.
| __debug_new_counter::__debug_new_counter | ( | ) |
Constructor to increment the count.
| __debug_new_counter::~__debug_new_counter | ( | ) |
Destructor to decrement the count.
When the count is zero, check_leaks will be called.
1.5.1