#include <pointer_cleaner.h>
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| pointer_cleaner () | |
| This is the only way to construct a new cleaner: they may not be copied. | |
| ~pointer_cleaner () | |
| Deletes any objects added via o. | |
| void | add (value_type *o) |
| Adds o to be deleted when this object goes out of scope. | |
It destroys any pointers added to it when it is destroyed.
This type models Non-Copyable. The only thing of use you can do with them is create them and then use their add() function.
Definition at line 25 of file pointer_cleaner.h.
|
||||||||||
|
Adds o to be deleted when this object goes out of scope. Once you do this, there is no way to remove o from the this object's Path of Destruction. Definition at line 52 of file pointer_cleaner.h. References s11n::pointer_cleaner< T >::add(). Referenced by s11n::pointer_cleaner< T >::add(). |
1.3.7