ΒΆtemplate <typename T>
std::enable_if_t<is_integral_or_enum<T>::value,
hash_code>
hash_value(T value)
template <typename T>
std::enable_if_t<is_integral_or_enum<T>::value,
hash_code>
hash_value(T value)
Description
Compute a hash_code for any integer value. Note that this function is intended to compute the same hash_code for a particular value without regard to the pre-promotion type. This is in contrast to hash_combine which may produce different hash_codes for differing argument types even if they would implicit promote to a common type without changing the value.
Declared at: llvm/include/llvm/ADT/Hashing.h:106
Templates
- T
Parameters
- T value