#include<iostream>
#include<unordered_map>
union Object {
#define _UNION_CONVER(type) type _##type;\
type& operator=(const type &right) {_##type = right;};\
operator type(){return _##type;}
_UNION_CONVER(int);
_UNION_CONVER(short);
_UNION_CONVER(long);
_UNION_CONVER(float);
_UNION_CONVER(double);
#undef _UNION_CONVER
};
std::unordered_map<Object, std::string> uomp;
int main() {
return 0;
}
RT,哈希表定义失败
(话说unordered_map原来也有排序操作吗)