Combine hashes of items in the range [first, last), order‐dependently.]
Synopsis
Declared in <folly/hash/Hash.h>
template<
class Iter,
class Hash = std::hash<std::iterator_traits<Iter>::value_type>>
uint64_t
hash_range(
Iter begin,
Iter end,
uint64_t hash = 0,
Hash hasher = Hash());
Description
For order‐independent hashing, such as for hashing an unordered container (e.g. folly::dynamic::object) use commutative_hash_combine_range instead.
methodset ranges
Return Value
The order‐dependent combined hash of the range
Parameters
Name |
Description |
hash |
The base‐case hash to use. |
hasher |
The function/callable which will hash the value. |
begin |
Iterator to the first element |
end |
Iterator past the last element |
Created with MrDocs