fixed include
This commit is contained in:
parent
f4d19fc898
commit
14c419d145
@ -2,6 +2,8 @@
|
|||||||
#define HGL_ALGORITHM_SORT_INCLUDE
|
#define HGL_ALGORITHM_SORT_INCLUDE
|
||||||
|
|
||||||
#include<hgl/TypeFunc.h>
|
#include<hgl/TypeFunc.h>
|
||||||
|
#include<hgl/CompOperator.h>
|
||||||
|
#include<hgl/type/List.h>
|
||||||
#include<string.h>
|
#include<string.h>
|
||||||
|
|
||||||
template<typename T> class SortBase
|
template<typename T> class SortBase
|
||||||
@ -68,8 +70,6 @@ public:
|
|||||||
virtual bool sort()=0; //排序
|
virtual bool sort()=0; //排序
|
||||||
};//struct SortBase
|
};//struct SortBase
|
||||||
|
|
||||||
namespace hgl
|
|
||||||
{
|
|
||||||
//堆排序
|
//堆排序
|
||||||
template<typename T> class HeapSort:public SortBase<T>
|
template<typename T> class HeapSort:public SortBase<T>
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ namespace hgl
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool Sort(List<T> &list,Comparator<T> *comp=Comparator<T>())
|
bool Sort(hgl::List<T> &list,Comparator<T> *comp=Comparator<T>())
|
||||||
{
|
{
|
||||||
return Sort(list.GetData(),
|
return Sort(list.GetData(),
|
||||||
list.GetCount(),
|
list.GetCount(),
|
||||||
@ -169,5 +169,4 @@ namespace hgl
|
|||||||
hgl::Sort<BagCell>(cell_list,BAG_SLOT_COUNT,&comp_baginfo);
|
hgl::Sort<BagCell>(cell_list,BAG_SLOT_COUNT,&comp_baginfo);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}//namespace hgl
|
|
||||||
#endif//HGL_ALGORITHM_SORT_INCLUDE
|
#endif//HGL_ALGORITHM_SORT_INCLUDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user