![]() |
Home | Libraries | People | FAQ | More |
boost::hash_range — Calculate the combined hash value of the elements of an iterator range.
template<typename It> std::size_t hash_range(It first, It last); template<typename It> void hash_range(std::size_t& seed, It first, It last);
| Effects: |
For the two argument overload:
size_t seed = 0;
for(; first != last; ++first)
{
hash_combine(seed, *first);
}
return seed;
For the three arguments overload:
for(; first != last; ++first)
{
hash_combine(seed, *first);
}
|
| Notes: |
This is an extension to TR1 |
| Throws: |
Only throws if |
| Copyright © 2005, 2006 Daniel James |