hashing in c++

#include <iostream>
#include <string>
#include <functional>

int main() {
    // Step 1: Define a string to be hashed
    std::string inputString = "Hello, World!";

    // Step 2: Choose a hash function, such as std::hash for strings
    std::hash<std::string> stringHashFunction;

    // Step 3: Apply the hash function to the input string
    size_t hashValue = stringHashFunction(inputString);

    // Step 4: Display the resulting hash value
    std::cout << "Hash value of \"" << inputString << "\": " << hashValue << std::endl;

    return 0;
}