ΒΆtemplate <typename ValueT>
std::enable_if_t<is_hashable_data<ValueT>::value,
hash_code>
hash_combine_range_impl(ValueT* first,
ValueT* last)
template <typename ValueT>
std::enable_if_t<is_hashable_data<ValueT>::value,
hash_code>
hash_combine_range_impl(ValueT* first,
ValueT* last)
Description
Implement the combining of integral values into a hash_code. This overload is selected when the value type of the iterator is integral and when the input iterator is actually a pointer. Rather than computing a hash_code for each object and then combining them, this (as an optimization) directly combines the integers. Also, because the integers are stored in contiguous memory, this routine avoids copying each value and directly reads from the underlying memory.
Declared at: llvm/include/llvm/ADT/Hashing.h:451
Templates
- ValueT
Parameters
- ValueT* first
- ValueT* last