Return the hash value used for Key.

Synopsis

Declared in <llvm/ADT/StringMap.h>

[[nodiscard]]
static
uint32_t
hash(StringRef Key);

Description

Callers may precompute this and pass it to overloads that accept a hash. The algorithm is not guaranteed to be stable across LLVM versions.

Return Value

The hash value used for Key.

Note

The return value should not be discarded.

Parameters

Name

Description

Key

String key to hash.

Created with MrDocs