Added SortedSets::Delete(const DataArray<> &)

This commit is contained in:
hyzboy 2024-07-26 03:13:23 +08:00
parent 3af7b1f73b
commit 7ba0796b05

View File

@ -133,7 +133,7 @@ namespace hgl
* @param count * @param count
* @return * @return
*/ */
int64 Delete(T *dp,const int64 count) int64 Delete(const T *dp,const int64 count)
{ {
int64 total=0; int64 total=0;
int64 pos; int64 pos;
@ -153,6 +153,11 @@ namespace hgl
return total; return total;
} }
int64 Delete(const DataArray<T> &da)
{
return Delete(da.GetData(),da.GetCount());
}
void Free (){data_list.Free();} ///<清除数据,并释放内存 void Free (){data_list.Free();} ///<清除数据,并释放内存
void Clear (){data_list.Clear();} ///<清除数据,但不释放内存 void Clear (){data_list.Clear();} ///<清除数据,但不释放内存