Код: Выделить всё
#include
template
struct std::hash {
std::size_t operator()(const pair &x) const {
return std::hash()(x.first) ^ std::hash()(x.second);
}
};
class abc {
std::unordered_map rules;
};
Подробнее здесь: https://stackoverflow.com/questions/205 ... airint-int