37 #ifndef OMPL_UTIL_HASH_ 38 #define OMPL_UTIL_HASH_ 41 #include <type_traits> 48 inline void hash_combine(std::size_t& seed,
const T& v)
51 seed ^= hasher(v) + 0x9e3779b9 + (seed<<6) + (seed>>2);
57 template <
class U,
class V>
58 struct hash<
std::pair<U,V> >
60 typedef std::pair<U,V> argument_type;
61 typedef std::size_t result_type;
62 result_type operator()(argument_type
const& p)
const 64 result_type h = std::hash<typename std::remove_cv<U>::type>()(p.first);
65 ompl::hash_combine(h, p.second);
Main namespace. Contains everything in this library.