| 1 | #cxx . . $ `<file>/orocos_kdl/src/utilities/hash_combine.h`/ifndef KDL_HASH_COMBINE_H_ |
| 2 | #define KDL_HASH_COMBINE_H_cxx . . $ `orocos_kdl/src/utilities/hash_combine.h:2:9`! |
| 3 | |
| 4 | #include <functional> |
| 5 | |
| 6 | namespace KDLcxx . . $ KDL/ |
| 7 | { |
| 8 | |
| 9 | /** |
| 10 | * @brief Combine hash of object \p v to the \p seed |
| 11 | * @param seed Seed to append the hash of \p v |
| 12 | * @param v Object of which the hash should be appended to the seed |
| 13 | * |
| 14 | * Inspired by: |
| 15 | * @link https://github.com/boostorg/multiprecision/blob/boost-1.79.0/include/boost/multiprecision/detail/hash.hpp#L35-L41 |
| 16 | */ |
| 17 | template <class T> |
| 18 | inline void hash_combinecxx . . $ KDL/hash_combine(774f86a0fdd9657e).(stdcxx . . $ std/::size_tcxx . . $ std/size_t#& seed, const T& v) |
| 19 | { |
| 20 | stdcxx . . $ std/::hashcxx . . $ std/hash#<T> hasher; |
| 21 | seed ^= hasher(v) +cxx . . $ KDL/operator+(e7db67d7dfcc13ac). 0x9e3779b9 +cxx . . $ KDL/operator+(b6903a1d619461b8). (seed << 6) +cxx . . $ KDL/operator+(e7db67d7dfcc13ac). (seed >> 2); |
| 22 | } |
| 23 | |
| 24 | } |
| 25 | |
| 26 | #endif |