C4 Engine
C4 Engine API Documentation

class StaticHash

Defined in:  TSText.h
The StaticHash class template is used to calculate a constant hash value for a string at compile time.
Definition

template <...> class StaticHash

Description
The 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 value enumerant member of the StaticHash class. 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'>::value
Hash values are case-sensitive.
See Also

Model::FindNode