StaticHashclass template is used to calculate a constant hash value for a string at compile time.
template <...> class StaticHash
DescriptionThe hash value for a string of up to 17 characters in length can be calculated as a compile-time constant by specifying each of the characters separately as template parameters. The constant hash value is accessed by using the
valueenumerant member of the
StaticHashclass. For example, the hash value of the string "foobar" is turned into a compile-time constant with the following expression:
Text::StaticHash<'f', 'o', 'o', 'b', 'a', 'r'>::valueHash values are case-sensitive.