Код: Выделить всё
#include
template
struct std::hash {
std::size_t operator()(const std::pair& pair) const {
return (std::size_t(pair.first)
Подробнее здесь: [url]https://stackoverflow.com/questions/79715869/specializing-stdhash-for-stdpairint-int[/url]