#include <unordered_map>
#include <iostream>
int main()
{
const std::unordered_map<int, int> my_map = { { 1, 2 }, { 3, 4 }, { 5, 6 } };
const auto hasher{ my_map.hash_function() };
for (const auto& [key, value] : my_map) { // Structured bindings were introduced in C++17
const auto hash_value = hasher(key);
std::cout << "(h: " << hash_value << ", k: " << key << ", v: " << value << ") ";
}
std::cout << std::endl;
}