Orocos KDL
hash_combine.h
1#ifndef KDL_HASH_COMBINE_H_
2#define KDL_HASH_COMBINE_H_
3
4#include <functional>
5
6namespace KDL
7{
8
17template <class T>
18inline void hash_combine(std::size_t& seed, const T& v)
19{
20 std::hash<T> hasher;
21 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
22}
23
24}
25
26#endif
Definition articulatedbodyinertia.hpp:32
void hash_combine(std::size_t &seed, const T &v)
Combine hash of object v to the seed.
Definition hash_combine.h:18