Hash: std::shared_ptr, std::unique_ptr support.

[SVN r79516]
This commit is contained in:
Daniel James committed 2012-07-14 22:32:29 +00:00
1 parent 4533e3b83f
commit 84d32ce136
4 files changed
+107

No files matched your search

@@ -177,6 +177,18 @@ namespace boost
# undef BOOST_HASH_TUPLE_F
#endif
#endif
#if !defined(BOOST_NO_CXX11_HDR_MEMORY)
template <typename T>
inline std::size_t hash_value(std::shared_ptr<T> const& x) {
return boost::hash_value(x.get());
}
template <typename T, typename Deleter>
inline std::size_t hash_value(std::unique_ptr<T, Deleter> const& x) {
return boost::hash_value(x.get());
}
#endif
//