4jcraft/Minecraft.World/Util/HashExtension.h
2026-03-13 17:06:56 -05:00

16 lines
273 B
C++

#pragma once
#ifdef _XBOX
//
namespace std {
namespace tr1 {
template <class T>
class hash<std::shared_ptr<T> > {
public:
size_t operator()(const std::shared_ptr<T>& key) const {
return (size_t)key.get();
}
};
} // namespace tr1
} // namespace std
#endif