AutoDelete/AutoDeleteArray增加!重载

This commit is contained in:
2020-06-05 11:01:22 +08:00
parent 12a766d021
commit b7329d10b5

View File

@@ -482,6 +482,7 @@ namespace hgl
operator T *(){return obj;}
operator const T *()const{return obj;}
const bool operator !()const{return !obj;}
void Clear()
{
@@ -529,6 +530,7 @@ namespace hgl
operator T *(){return obj;}
operator const T *()const{return obj;}
const bool operator !()const{return !obj;}
T &operator[](int index){return obj[index];}
const T &operator[](int index)const{return obj[index];}