CMExamples/datatype/collection/MultiMapTest.cpp

30 lines
489 B
C++
Raw Normal View History

//多重map测试
//多重map指的是一套数据含有多个关键字每个关键字都可以用来查找数据这样的数据结构称为多重map。
2024-11-01 01:13:43 +08:00
#include"UserInfo.h"
#include<hgl/type/DataArray.h>
using namespace hgl;
2024-11-01 01:13:43 +08:00
template<typename T> class IndexAccess
{
2024-11-01 01:13:43 +08:00
DataArray<T> *data_pool;
DataArray<int> data_index;
public:
const int Comp(const T &a,const T &b)const;
};
2024-11-01 01:13:43 +08:00
template<typename T> class MultiIndexMap
{
2024-11-01 01:13:43 +08:00
DataArray<T> data_pool;
public:
2024-11-01 01:13:43 +08:00
};