AutoDeleteArray append a new construct function.

This commit is contained in:
2020-09-27 21:15:30 +08:00
parent 2ec8168b16
commit b4b9b32955
2 changed files with 7 additions and 2 deletions

View File

@@ -518,6 +518,11 @@ namespace hgl
obj=nullptr;
}
AutoDeleteArray(const size_t count)
{
obj=new T[count];
}
AutoDeleteArray(T *o)
{
obj=o;