CMExamples/datatype/collection/MultiMapTest.cpp
2024-11-01 01:13:43 +08:00

30 lines
489 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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