add begin/end in ObjectList

This commit is contained in:
hyzboy 2020-10-10 16:17:58 +08:00
parent 7b79a61874
commit da5138b920

View File

@ -214,6 +214,11 @@ namespace hgl
// virtual T * CreateObject(){return(new T);} ///<创建一个数据
virtual void DeleteObject(T *obj){if(obj)delete obj;} ///<删除一个数据
public:
T **begin()const{return this->items;}
T **end()const{return this->items+this->count;}
public:
virtual ~ObjectList()