orocos_kdl
hash_combine.h
Go to the documentation of this file.
1 #ifndef KDL_HASH_COMBINE_H_
2 #define KDL_HASH_COMBINE_H_
3 
4 #include <functional>
5 
6 namespace KDL
7 {
8 
17 template <class T>
18 inline 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
functional
KDL::hash_combine
void hash_combine(std::size_t &seed, const T &v)
Combine hash of object v to the seed.
Definition: hash_combine.h:18
KDL
Definition: kukaLWR_DHnew.cpp:25
std::size_t
std::hash