diff --git a/inc/hgl/type/SortedSets.h b/inc/hgl/type/SortedSets.h index ea2d68d..d9f089e 100644 --- a/inc/hgl/type/SortedSets.h +++ b/inc/hgl/type/SortedSets.h @@ -133,7 +133,7 @@ namespace hgl * @param count 数据个数 * @return 成功删除的数据个数 */ - int64 Delete(T *dp,const int64 count) + int64 Delete(const T *dp,const int64 count) { int64 total=0; int64 pos; @@ -153,6 +153,11 @@ namespace hgl return total; } + int64 Delete(const DataArray &da) + { + return Delete(da.GetData(),da.GetCount()); + } + void Free (){data_list.Free();} ///<清除数据,并释放内存 void Clear (){data_list.Clear();} ///<清除数据,但不释放内存