basic_string.toHash

size_t toHash() const @nogc nothrow pure @safe

Hash to allow basic_strings to be used as keys for built-in associative arrays.

The result will generally not be the same as C++ std::hash<std::basic_string<T>>.