Gets a hash code for this symbol.
Equivalent to computing the hash code of the underlying std::string, but guaranteed to be computed in constant time.
x.hash() == std::hash<std::string>()((const std::string &)x)