| Base Module VST 3.7
    SDK for developing VST plug-in | 
Template definition for classes that help guarding against memory leaks. More...
#include <fcleanup.h>
| Public Member Functions | |
| FDeleter (T *_toDelete) | |
| Constructor.  More... | |
| ~FDeleter () | |
| Destructor. Calls delete on the at construction time passed pointer.  More... | |
| Public Attributes | |
| T * | toDelete | 
| Remembers the object that is to be deleted during destruction.  More... | |
Template definition for classes that help guarding against memory leaks.
A stack allocated object of this type automatically deletes an at construction time passed dynamically allocated single object when it reaches the end of its scope. 
Intended usage: 
| 
 | inline | 
Constructor.
_toDelete is a pointer to the dynamically allocated object that is to be deleted when this FDeleter object's destructor is executed.
| 
 | inline | 
Destructor. Calls delete on the at construction time passed pointer.
| T* toDelete | 
Remembers the object that is to be deleted during destruction.