求助
  • 板块灌水区
  • 楼主absolute_value
  • 当前回复22
  • 已保存回复22
  • 发布时间2024/10/18 19:19
  • 上次更新2024/10/18 21:35:06
查看原帖
求助
1067907
absolute_value楼主2024/10/18 19:19
#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原来也有排序操作吗)

2024/10/18 19:19
加载中...