ΒΆtemplate <typename T>
typename std::enable_if<
is_integral_or_enum<T>::value,
hash_code>::type
hash_value(T value)
template <typename T>
typename std::enable_if<
is_integral_or_enum<T>::value,
hash_code>::type
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:105
Templates
- T
Parameters
- T value