Added SortedSets::Delete(const DataArray<> &)
This commit is contained in:
parent
3af7b1f73b
commit
7ba0796b05
@ -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<T> &da)
|
||||
{
|
||||
return Delete(da.GetData(),da.GetCount());
|
||||
}
|
||||
|
||||
void Free (){data_list.Free();} ///<清除数据,并释放内存
|
||||
void Clear (){data_list.Clear();} ///<清除数据,但不释放内存
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user