std::hash
#include <iostream>
#include <functional>
int main() {
std::string str = "Hello, World!";
// Step 1: Create an instance of std::hash for the appropriate type (in this case, std::string).
std::hash<std::string> hasher;
// Step 2: Use the hash function to compute the hash value for the given input.
size_t hashValue = hasher(str);
// Step 3: Output the computed hash value.
std::cout << "Hash value for \"" << str << "\": " << hashValue << std::endl;
return 0;
}