A simple helper class used to delete an array when it goes out of scope. 更多...
#include <DetourAlloc.h>
Public 成员函数 | |
| dtScopedDelete () | |
| Constructs an instance with a null pointer. | |
| dtScopedDelete (T *p) | |
| Constructs an instance with the specified pointer. 更多... | |
| operator T* () | |
| The root array pointer. 更多... | |
A simple helper class used to delete an array when it goes out of scope.
|
inline |
Constructs an instance with the specified pointer.
| [in] | p | An pointer to an allocated array. |
|
inline |
The root array pointer.